Home
Course Guidelines
About the course Prerequite Material References
Python
Jupyter Notebooks Python overview
Exercises
Before the semester start: Installation and exercise setup Week 1: Introduction to Python and libraries Week 2: Vector representations Week 3: Linear Algebra Week 4: Linear Transformations Week 5: Models and least squares Week 6: Assignment 1 - Gaze Estimation Week 7: Model selection and descriptive statistics Week 8: Filtering Week 9: Classification Week 10: Evaluation Week 11: Dimensionality reduction Week 12: Clustering and refresh on gradients Week 13: Neural Networks Week 14: Convolutional Neural Networks (CNN's)
Tutorials
Week 1: Data analysis, manipulation and plotting Week 2: Linear algebra Week 3: Transformations tutorial Week 4: Projection and Least Squares tutorial Week 7: Cross-validation and descriptive statistics tutorial Week 8: Filtering tutorial Week 11: Gradient Descent / Ascent
In-class Exercises
In-class 1 In-class 2 In-class 10 In-class 3 In-class 4 In-class 8
Explorer

Document

  • Overview
  • 1. Tutorial week 4: Projection and Least Squares tutorial
  • 2. Experimenting with the tutorial
  • 3. Learning an Affine 2D Transformation

Content

Models and least squares

The following exercises will help you understand linear models and how to solve for model parameters. The exercises focus on:

  • projections and their use in fitting linear models to data.
  • on affine transformations
  • polynomial model.

Please prioritize your time accordingly, where your priority should be given to the first two exercises. The tasks related polynomial models will be revisited in later weeks.

Linear models are extremely important for understanding machine learning models in general. Therefore, we highly recommend that you use every possible opportunity to ask for help if you have trouble understanding any of the concepts. The exercise about learning an affine 2D transformation is important for solving the assignment next week, so please make sure that you complete each task with a high priority.

Learning goals

After this week's exercises, you should be able to:

  • Reason about the relationship between projections and least squares.
  • Learn and apply an affine transformation.
  • Estimate and visualize the transformed points.
  • Reflect upon the possibilites and limitations of linear least squares.
  • Train, compare and reason about the performance of polynomial models.