This page lists the exercises in Machine Learning Crash Course.
Programming exercises run directly in your browser (no setup required!) using the Colaboratory platform. Colaboratory is supported on most major browsers, and is most thoroughly tested on desktop versions of Chrome and Firefox.
All
Linear regression
- Check your understanding: Intro to linear regression
- Check your understanding: Loss
- Interactive: Linear regression parameters
- Check your understanding: Gradient descent
- Check your understanding: Learning rate
- Check your understanding: Batch size
- Interactive: Gradient descent
- Programming: Linear regression
- Final quiz: Test your knowledge
Logistic regression
Classification
- Interactive: Thresholding
- Check your understanding: TP, TN, FP, FN
- Interactive: Precision and recall
- Check your understanding: Precision and recall
- Interactive: ROC curve
- Check your understanding: ROC and AUC
- Programming: Classification
- Final quiz: Test your knowledge
Working with numerical data
- Programming: Statistics and bad values
- Check your understanding: Linear scaling
- Check your understanding: Z-score scaling
- Test your knowledge: Normalization techniques
- Check your understanding: Binning
- Final quiz: Test your knowledge
Working with categorical data
- Check your intuition: Encoding
- Check your intuition: Index numbers
- Interactive: Feature crosses
- Final quiz: Test your knowledge
Datasets, generalization, and overfitting
- Check your intuition: Introduction
- Check your understanding: Imputation
- Check your understanding: Proxy labels
- Check your understanding: Imbalanced datasets
- Check your intuition: Dividing datasets
- Check your intuition: Test sets
- Check your understanding: Dividing datasets
- Check your understanding: Overfitting
- Check your understanding: Model complexity
- Check your intuition: Complexity metrics
- Check your understanding: L2 regularization
- Interpreting loss curves
- Final quiz: Test your knowledge
Neural networks
- Interactive: Input layer and output layer
- Interactive: Adding a hidden layer
- Interactive: Activation functions
- Interactive: Modifying the neural network configuration
- Interactive: Training a neural network
- Final quiz: Test your knowledge
Embeddings
Large language models
- Check your understanding: n-grams
- Check your understanding: Transformers
- Check your understanding: Fine-tuning and distillation
- Final quiz: Test your knowledge
Production ML systems
- Check your understanding: Static vs. dynamic training
- Check your understanding: Static vs. dynamic inference
- Check your understanding: Real-world metrics
- Check your understanding: Label leakage
- Check your understanding: Feedback loops
- Final quiz: Test your knowledge
Fairness
- Check your understanding: Types of bias
- Check your understanding: Missing feature values
- Check your understanding: Unexpected feature values
- Check your understanding: Mitigating bias
- Check your intuition: Demographic parity
- Check your understanding: Equality of opportunity
- Check your understanding: Counterfactual fairness
- Programming: Addressing bias and fairness issues
- Final quiz: Test your knowledge
Quizzes
Linear regression
- Check your understanding: Intro to linear regression
- Check your understanding: Loss
- Interactive: Linear regression parameters
- Check your understanding: Gradient descent
- Check your understanding: Learning rate
- Check your understanding: Batch size
- Interactive: Gradient descent
- Programming: Linear regression
- Final quiz: Test your knowledge
Logistic regression
Classification
- Interactive: Thresholding
- Check your understanding: TP, TN, FP, FN
- Interactive: Precision and recall
- Check your understanding: Precision and recall
- Interactive: ROC curve
- Check your understanding: ROC and AUC
- Programming: Classification
- Final quiz: Test your knowledge
Working with numerical data
- Programming: Statistics and bad values
- Check your understanding: Linear scaling
- Check your understanding: Z-score scaling
- Test your knowledge: Normalization techniques
- Check your understanding: Binning
- Final quiz: Test your knowledge
Working with categorical data
- Check your intuition: Encoding
- Check your intuition: Index numbers
- Interactive: Feature crosses
- Final quiz: Test your knowledge
Datasets, generalization, and overfitting
- Check your intuition: Introduction
- Check your understanding: Imputation
- Check your understanding: Proxy labels
- Check your understanding: Imbalanced datasets
- Check your intuition: Dividing datasets
- Check your intuition: Test sets
- Check your understanding: Dividing datasets
- Check your understanding: Overfitting
- Check your understanding: Model complexity
- Check your intuition: Complexity metrics
- Check your understanding: L2 regularization
- Interpreting loss curves
- Final quiz: Test your knowledge
Neural networks
- Interactive: Input layer and output layer
- Interactive: Adding a hidden layer
- Interactive: Activation functions
- Interactive: Modifying the neural network configuration
- Interactive: Training a neural network
- Final quiz: Test your knowledge
Embeddings
Large language models
- Check your understanding: n-grams
- Check your understanding: Transformers
- Check your understanding: Fine-tuning and distillation
- Final quiz: Test your knowledge
Production ML systems
- Check your understanding: Static vs. dynamic training
- Check your understanding: Static vs. dynamic inference
- Check your understanding: Real-world metrics
- Check your understanding: Label leakage
- Check your understanding: Feedback loops
- Final quiz: Test your knowledge
Fairness
- Check your understanding: Types of bias
- Check your understanding: Missing feature values
- Check your understanding: Unexpected feature values
- Check your understanding: Mitigating bias
- Check your intuition: Demographic parity
- Check your understanding: Equality of opportunity
- Check your understanding: Counterfactual fairness
- Programming: Addressing bias and fairness issues
- Final quiz: Test your knowledge
Interactive
Linear regression
- Check your understanding: Intro to linear regression
- Check your understanding: Loss
- Interactive: Linear regression parameters
- Check your understanding: Gradient descent
- Check your understanding: Learning rate
- Check your understanding: Batch size
- Interactive: Gradient descent
- Programming: Linear regression
- Final quiz: Test your knowledge
Logistic regression
Classification
- Interactive: Thresholding
- Check your understanding: TP, TN, FP, FN
- Interactive: Precision and recall
- Check your understanding: Precision and recall
- Interactive: ROC curve
- Check your understanding: ROC and AUC
- Programming: Classification
- Final quiz: Test your knowledge
Working with numerical data
- Programming: Statistics and bad values
- Check your understanding: Linear scaling
- Check your understanding: Z-score scaling
- Test your knowledge: Normalization techniques
- Check your understanding: Binning
- Final quiz: Test your knowledge
Working with categorical data
- Check your intuition: Encoding
- Check your intuition: Index numbers
- Interactive: Feature crosses
- Final quiz: Test your knowledge
Datasets, generalization, and overfitting
- Check your intuition: Introduction
- Check your understanding: Imputation
- Check your understanding: Proxy labels
- Check your understanding: Imbalanced datasets
- Check your intuition: Dividing datasets
- Check your intuition: Test sets
- Check your understanding: Dividing datasets
- Check your understanding: Overfitting
- Check your understanding: Model complexity
- Check your intuition: Complexity metrics
- Check your understanding: L2 regularization
- Interpreting loss curves
- Final quiz: Test your knowledge
Neural networks
- Interactive: Input layer and output layer
- Interactive: Adding a hidden layer
- Interactive: Activation functions
- Interactive: Modifying the neural network configuration
- Interactive: Training a neural network
- Final quiz: Test your knowledge
Embeddings
Large language models
- Check your understanding: n-grams
- Check your understanding: Transformers
- Check your understanding: Fine-tuning and distillation
- Final quiz: Test your knowledge
Production ML systems
- Check your understanding: Static vs. dynamic training
- Check your understanding: Static vs. dynamic inference
- Check your understanding: Real-world metrics
- Check your understanding: Label leakage
- Check your understanding: Feedback loops
- Final quiz: Test your knowledge
Fairness
- Check your understanding: Types of bias
- Check your understanding: Missing feature values
- Check your understanding: Unexpected feature values
- Check your understanding: Mitigating bias
- Check your intuition: Demographic parity
- Check your understanding: Equality of opportunity
- Check your understanding: Counterfactual fairness
- Programming: Addressing bias and fairness issues
- Final quiz: Test your knowledge
Programming
Linear regression
- Check your understanding: Intro to linear regression
- Check your understanding: Loss
- Interactive: Linear regression parameters
- Check your understanding: Gradient descent
- Check your understanding: Learning rate
- Check your understanding: Batch size
- Interactive: Gradient descent
- Programming: Linear regression
- Final quiz: Test your knowledge
Logistic regression
Classification
- Interactive: Thresholding
- Check your understanding: TP, TN, FP, FN
- Interactive: Precision and recall
- Check your understanding: Precision and recall
- Interactive: ROC curve
- Check your understanding: ROC and AUC
- Programming: Classification
- Final quiz: Test your knowledge
Working with numerical data
- Programming: Statistics and bad values
- Check your understanding: Linear scaling
- Check your understanding: Z-score scaling
- Test your knowledge: Normalization techniques
- Check your understanding: Binning
- Final quiz: Test your knowledge
Working with categorical data
- Check your intuition: Encoding
- Check your intuition: Index numbers
- Interactive: Feature crosses
- Final quiz: Test your knowledge
Datasets, generalization, and overfitting
- Check your intuition: Introduction
- Check your understanding: Imputation
- Check your understanding: Proxy labels
- Check your understanding: Imbalanced datasets
- Check your intuition: Dividing datasets
- Check your intuition: Test sets
- Check your understanding: Dividing datasets
- Check your understanding: Overfitting
- Check your understanding: Model complexity
- Check your intuition: Complexity metrics
- Check your understanding: L2 regularization
- Interpreting loss curves
- Final quiz: Test your knowledge
Neural networks
- Interactive: Input layer and output layer
- Interactive: Adding a hidden layer
- Interactive: Activation functions
- Interactive: Modifying the neural network configuration
- Interactive: Training a neural network
- Final quiz: Test your knowledge
Embeddings
Large language models
- Check your understanding: n-grams
- Check your understanding: Transformers
- Check your understanding: Fine-tuning and distillation
- Final quiz: Test your knowledge
Production ML systems
- Check your understanding: Static vs. dynamic training
- Check your understanding: Static vs. dynamic inference
- Check your understanding: Real-world metrics
- Check your understanding: Label leakage
- Check your understanding: Feedback loops
- Final quiz: Test your knowledge
Fairness
- Check your understanding: Types of bias
- Check your understanding: Missing feature values
- Check your understanding: Unexpected feature values
- Check your understanding: Mitigating bias
- Check your intuition: Demographic parity
- Check your understanding: Equality of opportunity
- Check your understanding: Counterfactual fairness
- Programming: Addressing bias and fairness issues
- Final quiz: Test your knowledge