Chapter 2 Fundamentals of Machine Learning