Essays in machine learning in finance