Machine learning fits models to data so that they make good predictions or find structure on new data. This folder follows the order of An Introduction to Statistical Learning (James, Witten, Hastie and Tibshirani). It first sorts problems by the data available, then shows how to score a model, and then covers the models. Neural networks live in 5. Deep Learning.
Prerequisites
- 13.1 Singular Value Decomposition and 6.1. Least Squares, for the linear algebra behind regression and PCA.
- 1.2.1 Maximum Likelihood Estimation, for the probabilistic view of most losses.
- 6.4. Gradient Descent, for fitting models without a closed form.
Contents
- 1. Learning Paradigms: supervised, unsupervised, semi-supervised, self-supervised and reinforcement learning, compared by the data each needs.
Supervised learning
- 2. Model Evaluation: regression metrics, classification metrics, generalization, bias and variance, and cross-validation.
- 3. Regression: linear and multiple regression, basis functions, ridge, lasso and elastic net, and nonlinear least squares.
- 4. Classification: the Bayes classifier, linear discriminants, logistic and softmax regression, support vector machines and k-nearest neighbors.
- 5. Tree-Based Methods: decision trees, random forests and gradient-boosted trees, for both regression and classification.
Unsupervised learning
- 6. Clustering: k-means, Gaussian mixture models and hierarchical clustering.
- 7. Dimensionality Reduction: PCA, the curse of dimensionality and t-SNE.
Recommended path
Read 1. Learning Paradigms first, then 2.3. Generalization and the two metric notes 2.1.1. Mean Squared Error and 2.2.1. Confusion Matrix. Continue with 3.1. Linear Regression and 4.3. Logistic Regression, the two models most other notes build on.