Applied MLby ArxFoundry

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

  1. Learning from examplesShow a model examples with answers, score how wrong it is, and adjust it until the score is small.
  2. Linear regressionPredict a number as a weighted sum of features, and pick the weights that make the squared error smallest.
  3. Gradient descentStep downhill on the loss, a little at a time, using a few examples per step.
  4. Logistic regression and classificationSquash a linear score into a probability, and train it with cross-entropy.

Level 2·Will it work on new data?

  1. Generalisation and overfittingA model that aces its training data can still fail on new data. Hold some data back to find out.
  2. Regularisation and cross-validationPenalise big weights to fit less noise, and rotate the validation set to choose settings fairly.
  3. Measuring successAccuracy can lie. Precision, recall, ROC curves and calibration say what a classifier really does.

Level 3·Other ways to draw a boundary

  1. Nearest neighboursPredict from the most similar past examples, once the features are on the same scale.
  2. Decision treesAsk yes/no questions about features, choosing each question to make the groups purer.
  3. Bagging and random forestsAverage many trees trained on shuffled copies of the data, and their mistakes cancel out.
  4. Boosting and gradient-boosted treesAdd small trees one at a time, each fixing what the others still get wrong.
  5. Support vector machines and kernelsDraw the boundary with the widest gap, and use kernels to make that boundary curve.

Level 4·Thinking in probabilities

  1. Maximum likelihood and MAPChoose the parameters that make the data most probable, and see why MSE and cross-entropy fall out.
  2. Naive BayesClassify with Bayes' rule by pretending the features are independent. It works better than it should.
  3. Bayesian networksDraw which variables influence which, and reason from effects back to causes.

Level 5·Structure without labels

  1. Principal component analysisFind the directions where data spreads out most, and describe each example with fewer numbers.
  2. Clustering: k-means and Gaussian mixturesFind groups with no labels: move centres to their points, or fit a mixture of bell curves.

Level 6·In practice

  1. Features, leakage and the workflowTurn raw data into features, keep test information out of training, and wrap it all in a pipeline.
  2. A/B testingRandomly split customers between two versions, and tell a real difference from noise.

Level 7·Practical engineering

  1. Choosing a model for tabular dataWhich model to try first on a table of data, and what each one costs you.
  2. Evaluation you can trustSplits that match how the model will be used, and the gap between offline scores and real results.

Level 8·Exam

  1. ML fundamentals examTwenty-five multiple-choice questions on the whole course. Check your answers at the end.