Lesson 4.1 ยท Stage 04: Machine learning
Machine learning algorithms: the full map
The 30 algorithms that cover most real work, the order to learn them in, and a wider reference list grouped by task.
There is no fixed count of machine learning algorithms. New ones are published all the time, and many are small variations of older ones. This page gives you two things: the short list worth learning properly, and a longer reference list so that an unfamiliar name is easy to place.
The 30 that cover most real work
Regression and classification on tables of data
Most business machine learning is done on tables: rows of customers, orders or sensor readings.
- Linear regression
- Logistic regression
- Ridge and Lasso (linear models with regularisation)
- Decision tree
- Random forest
- Gradient boosting: XGBoost, LightGBM, CatBoost
- k-nearest neighbours
- Naive Bayes
- Support vector machine
Clustering and other unsupervised methods
- k-means
- Hierarchical clustering
- DBSCAN
- Gaussian mixture models (fitted with expectation maximisation)
- PCA
- t-SNE and UMAP (for visualisation)
Anomaly detection
- Isolation forest
- One-class SVM and local outlier factor
Association and recommendation
- Apriori and FP-Growth
- Collaborative filtering and matrix factorisation
Time series
- ARIMA and SARIMA
- Exponential smoothing (Holt-Winters)
- Prophet
Deep learning
- Multilayer perceptron (a feedforward neural network)
- CNN, for images
- LSTM and GRU, for sequences
- Transformer, for text and now most other data
- Autoencoder
- Diffusion models, for generating images and audio
Reinforcement learning
- Q-learning and DQN
- PPO
Two optimisers sit underneath most of the list: stochastic gradient descent with momentum, and Adam (or its variant AdamW).
The order to learn them in
Learn these ten first, in this order:
- Linear regression
- Logistic regression
- Decision tree
- Random forest
- Gradient boosting (XGBoost)
- k-means
- PCA
- Multilayer perceptron
- CNN
- Transformer
Each one introduces an idea the next one builds on. Once these ten are solid, most of the other twenty are variations you can pick up quickly.
The wider reference list
Use this section as a lookup. You do not need to learn everything here.
| Task | Algorithms |
|---|---|
| Regression | Linear regression, Ridge, Lasso, Elastic Net, polynomial regression, Bayesian regression, generalised linear models, support vector regression, decision tree regression, random forest regression, gradient boosting, k-NN regression, Gaussian process regression, neural network regression |
| Classification | Logistic regression, Naive Bayes (Gaussian, multinomial, Bernoulli), k-nearest neighbours, support vector machine (linear and RBF kernel), decision trees (CART, ID3, C4.5), random forest, extra trees, AdaBoost, gradient boosting, linear and quadratic discriminant analysis, perceptron, multilayer perceptron |
| Clustering | k-means, k-medoids, mini-batch k-means, hierarchical (agglomerative and divisive), DBSCAN, HDBSCAN, OPTICS, mean shift, Gaussian mixture models, spectral clustering, BIRCH, affinity propagation |
| Dimensionality reduction | PCA, kernel PCA, incremental PCA, SVD and truncated SVD, non-negative matrix factorisation, ICA, LDA (topic modelling), t-SNE, UMAP, autoencoders, factor analysis, MDS, Isomap, LLE |
| Anomaly detection | One-class SVM, isolation forest, local outlier factor, elliptic envelope, autoencoder reconstruction error |
| Association and recommendation | Apriori, FP-Growth, Eclat, collaborative filtering (user-based and item-based), matrix factorisation (ALS, SVD++), factorisation machines |
| Time series | AR, MA, ARMA, ARIMA, SARIMA, ARIMAX, exponential smoothing (Holt-Winters), Prophet, VAR, GARCH, LSTM and GRU models, temporal fusion transformers, N-BEATS |
| Semi-supervised and self-supervised | Label propagation, label spreading, self-training, co-training, contrastive learning (SimCLR, MoCo, CLIP), masked modelling (BERT, MAE), next-token prediction |
| Reinforcement learning | Q-learning, SARSA, DQN, double and dueling DQN, policy gradient (REINFORCE), actor-critic (A2C, A3C), PPO, TRPO, DDPG, TD3, SAC, Monte Carlo tree search, multi-armed bandits (UCB, Thompson sampling) |
| Ensemble methods | Bagging, boosting, stacking, voting, blending, random subspace |
| Probabilistic and graphical models | Hidden Markov models, Bayesian networks, Markov random fields, conditional random fields, Kalman filter, variational inference, MCMC |
| Model selection | Cross-validation, grid search, random search, Bayesian hyperparameter search, AutoML, neural architecture search, feature selection (RFE, chi-square, mutual information) |
Less common supervised methods
You will meet these names in papers and older textbooks:
- Instance-based: weighted k-NN, radius neighbours, learning vector quantisation.
- Rule-based: OneR, ZeroR (a baseline that always predicts the majority class), RIPPER, decision stump.
- Kernel-based: kernel ridge regression, relevance vector machine, kernel perceptron.
- Discriminant analysis variants: regularised, flexible and mixture discriminant analysis.
- Ensemble variants: stochastic gradient boosting, histogram-based gradient boosting, NGBoost, rotation forest.
What comes next
Deep learning gets its own page: Deep learning architectures and how networks are trained.