Chapter 1: Foundations of Machine Learning and Deep Learning