Slides for the book Machine Learning: A Constraint-Based Approach by Marco Gori, prepared with Lisa Graziani. Slides Introduction Chapter 4: kernel machines Chapter 5: deep architectures