Essays in empirical asset pricing with machine learning