Machine Learning

Intermediate · Roadmap · 33 lessons · 8 groups

Building and training models from data, not calling ones someone else trained. Thirty-three lessons from what learning from data means through classical models, evaluation and neural networks, to where deep learning picks up.

0%

Not started

Nothing saved yet. Progress is kept in this browser until you sign in.

Start the path

What learning from data means

4 lessons

  1. 01 / 04What is machine learning?A system that improves at a task from data rather than being explicitly programmed with rules — and how that differs from using a pretrained model.8 min
  2. 02 / 04Types of learningSupervised, unsupervised, semi-supervised, self-supervised and reinforcement learning — what distinguishes each, with a concrete example of every one.27 min
  3. 03 / 04The ML workflowCollect, explore, engineer features, split, train, evaluate, tune, deploy, monitor — and why the real version of this loop is iterative, not a straight line.5 min
  4. 04 / 04Generalization and overfittingWhy a model that performs well on training data can fail on new data, the bias-variance tradeoff, and why train/validation/test splits exist.7 min

Preparing data a model can learn from

5 lessons

  1. 01 / 05Exploratory data analysisLooking at data before modeling it — summary statistics, distributions, correlations, and asking what the data actually represents and where it came from.13 min
  2. 02 / 05Data cleaningMissing values, duplicates, outliers, and inconsistent formatting — finding and handling these, and the judgment calls involved.5 min
  3. 03 / 05Feature engineeringCreating new input variables from raw data that make patterns easier to learn — transformations, interactions, aggregations and date decomposition.5 min
  4. 04 / 05Feature scaling and encodingNormalization versus standardization and why it matters for some models and not others; encoding categorical variables into numbers a model can use.6 min
  5. 05 / 05Imbalanced dataWhen one class vastly outnumbers another, why accuracy becomes a misleading metric, and the techniques — resampling, class weights — that address it.14 min

Models that learn from labelled examples

5 lessons

  1. 01 / 05Linear regressionFitting a line to predict a continuous value — the cost function, fitting by minimizing squared error, and interpreting the resulting coefficients.11 min
  2. 02 / 05Logistic regressionA classification method despite the name — the sigmoid function, the decision boundary it creates, and the log-loss objective it is trained against.9 min
  3. 03 / 05RegularizationL1 (Lasso) and L2 (Ridge) regularization — why unconstrained models overfit, how penalizing large coefficients helps, and the difference between the two.14 min
  4. 04 / 05K-nearest neighborsA non-parametric method that classifies or predicts from the k closest training examples — choosing k, scaling sensitivity, and prediction-time cost.6 min
  5. 05 / 05Decision treesSplitting data recursively on feature thresholds to build a tree — how splits are chosen, overfitting via depth, and why a tree is interpretable but unstable.18 min

Combining and reshaping the simple models

3 lessons

  1. 01 / 03Support vector machinesFinding the maximum-margin hyperplane separating classes, the kernel trick for non-linear data, and the C hyperparameter controlling the tradeoff.31 min
  2. 02 / 03Bagging and random forestsTraining many models on resampled data and aggregating their predictions — and why random forests also randomize which features each tree can split on.8 min
  3. 03 / 03Gradient boostingTraining models sequentially, each correcting the ensemble's errors so far, scaled by a learning rate — boosting reduces bias where bagging reduces variance.16 min

Finding structure with no labels at all

3 lessons

  1. 01 / 03ClusteringGrouping unlabeled data by similarity — k-means and the elbow method, hierarchical clustering and dendrograms, and what "good" means with no labels.9 min
  2. 02 / 03Dimensionality reductionReducing the number of features while preserving structure — PCA, finding the directions of maximum variance via eigenvectors, and what is lost in the process.22 min
  3. 03 / 03Anomaly detectionFinding rare, unusual data points with statistical, density and distance-based approaches — and the challenge of validating with few or no labeled anomalies.16 min

Knowing whether a model is actually good

4 lessons

  1. 01 / 04Evaluation metricsAccuracy, precision, recall and the confusion matrix for classification; MSE, RMSE and R² for regression — and why the right metric depends on the problem.7 min
  2. 02 / 04Cross-validationWhy a single train/test split can mislead, k-fold and stratified k-fold mechanics, and leave-one-out as the extreme case.9 min
  3. 03 / 04Hyperparameter tuningParameters versus hyperparameters; grid search, random search and Bayesian optimization — and the risk of overfitting to the validation set itself.8 min
  4. 04 / 04Model selectionComparing different models fairly using the same validation methodology, and the honest case that a simpler, more interpretable model is often the right choice.14 min

Where deep learning starts

5 lessons

  1. 01 / 05Neural network basicsThe perceptron and multi-layer networks — neurons, weights and biases — and why stacking layers needs non-linearity to beat linear regression.19 min
  2. 02 / 05Activation functionsSigmoid, tanh and ReLU — what each does to its input, the vanishing gradient problem, and why ReLU became the default for hidden layers.9 min
  3. 03 / 05BackpropagationHow gradients of the loss with respect to every weight are computed efficiently via the chain rule, propagating error backward through the network.13 min
  4. 04 / 05Training neural networksThe practical training loop — forward pass, loss, backward pass, optimizer step, batch size, epochs — and batch normalization and dropout as stabilizers.21 min
  5. 05 / 05Convolutional neural networksFilters sliding over an image, why this is far more parameter-efficient than a fully-connected layer, pooling, and the conv-pool-connected architecture.15 min

What the simple network grows into

4 lessons

  1. 01 / 04Recurrent neural networksMaintaining a hidden state updated at each sequence step, the vanishing gradient problem over long sequences, and LSTM/GRU as the fix.21 min
  2. 02 / 04Generative modelsModels that generate new data rather than just predicting a label — autoencoders, learning a compressed representation, and GANs' adversarial setup.21 min
  3. 03 / 04Attention and transformersWhy attention let models look at any part of a sequence directly instead of a single bottleneck hidden state, and the architecture built entirely on it.6 min
  4. 04 / 04Reinforcement learning basicsAn agent learning from an environment's rewards — the agent/environment/state/action/reward loop, explore-vs-exploit, and Q-learning as a concrete example.16 min
Esc
↑↓ navigate↵ open? shortcuts

Keyboard shortcuts

Press Esc to close

Anywhere

⌘K
Search and commands
/
Search
?
This sheet
Esc
Close

Reading a lesson

J
Next lesson
K
Previous lesson
B
Bookmark