Learning from data
ML fundamentals
The classic toolkit: regression, classification, trees and boosting, kernels, probabilistic models, clustering, and how to tell if a model really works.
Start course 22 lessons · 8 levels
Level 1·Learning from data
- Learning from examplesShow a model examples with answers, score how wrong it is, and adjust it until the score is small.
- Linear regressionPredict a number as a weighted sum of features, and pick the weights that make the squared error smallest.
- Gradient descentStep downhill on the loss, a little at a time, using a few examples per step.
- Logistic regression and classificationSquash a linear score into a probability, and train it with cross-entropy.
Level 2·Will it work on new data?
- Generalisation and overfittingA model that aces its training data can still fail on new data. Hold some data back to find out.
- Regularisation and cross-validationPenalise big weights to fit less noise, and rotate the validation set to choose settings fairly.
- Measuring successAccuracy can lie. Precision, recall, ROC curves and calibration say what a classifier really does.
Level 3·Other ways to draw a boundary
- Nearest neighboursPredict from the most similar past examples, once the features are on the same scale.
- Decision treesAsk yes/no questions about features, choosing each question to make the groups purer.
- Bagging and random forestsAverage many trees trained on shuffled copies of the data, and their mistakes cancel out.
- Boosting and gradient-boosted treesAdd small trees one at a time, each fixing what the others still get wrong.
- Support vector machines and kernelsDraw the boundary with the widest gap, and use kernels to make that boundary curve.
Level 4·Thinking in probabilities
- Maximum likelihood and MAPChoose the parameters that make the data most probable, and see why MSE and cross-entropy fall out.
- Naive BayesClassify with Bayes' rule by pretending the features are independent. It works better than it should.
- Bayesian networksDraw which variables influence which, and reason from effects back to causes.