Fundamentals of Machine Learning in Finance