Advanced Math: for Machine Learning

About the course

Machine learning math in practice: feature vectors, the dot product and cosine similarity, norms, the linear model y = Wx + b, MSE and cross-entropy losses, gradient descent and backpropagation on a small network, sigmoid, softmax and ReLU, logistic regression, Bayes and likelihood, quality metrics, overfitting and regularization, feature normalization and PCA. Requires linear algebra, calculus and probability.

Course program: 39 lessons

Vectors and data

  1. Feature vectors and the data matrix
  2. Dot product
  3. L1 and L2 norms
  4. Cosine similarity
  5. L1 and L2 norms: more
  6. Checkpoint: vectors and data

The linear model and training

  1. Linear model y = Wx + b
  2. MSE loss function
  3. Partial derivatives and the gradient
  4. Gradient descent
  5. Gradient descent: more
  6. Checkpoint: the linear model and training

Neural networks and backpropagation

  1. Activation functions: sigmoid and ReLU
  2. Softmax
  3. Chain rule
  4. Backpropagation
  5. Backpropagation: more
  6. Checkpoint: neural networks

Probability and classification

  1. Logistic regression
  2. Cross-entropy
  3. Probability, likelihood, Bayes
  4. Checkpoint: probability and classification

Model quality

  1. Metrics: accuracy, precision, recall, F1
  2. Overfitting and splitting the data
  3. Regularization
  4. Feature normalization
  5. PCA and eigenvectors
  6. Checkpoint: model quality

Clusters, trees and ensembles

  1. k-means: clustering
  2. Decision trees: Gini and entropy
  3. Ensembles: forest, bagging, boosting
  4. Test: clusters, trees and ensembles

Training in practice

  1. Stochastic descent and mini-batches
  2. Momentum and Adam
  3. Normal equations of regression
  4. Backpropagation for layers
  5. Check: training in practice

Model evaluation: cross-validation

  1. Cross-validation, ROC-AUC, bias and variance
  2. Check: model evaluation