Machine Learning

From data to models: supervised learning, evaluation, deep learning, modern architectures, and MLOps.

36 lessons

Estimated lesson study time: 541 minutes

Lesson estimates are a guide, not a deadline. Allow extra time for practice, projects, and review.

Learn AI & Technology Access gives you full access to all 19 tracks and 552 lessons after sign-up and onboarding. No time limit, paid subscription, or payment card required.

Start Learn AI & Technology Access

Includes three AI Tutor answers across these courses. AI-generated content remains subject to Learn’s monthly allowance.

Track overview

Follow the path from learning problems and data to regression, classification, feature engineering, evaluation, ensembles, deep learning, and modern architectures. Later modules connect model work with deployment, monitoring, fairness, and governance.

Who this track is for

Learners moving from AI concepts into the methods used to build and evaluate models.

Before you begin

Basic Python, data-handling skills, and comfort with introductory algebra will help. Review Foundations of AI or Python Programming first if these topics are new.

What you will work toward

Practice selecting and evaluating models, interpreting performance, recognizing bias, and planning how a model can be deployed and governed.

Complete lesson outline

1. Machine Learning Foundations

4 lessons

  1. 1.1 The Machine Learning Mindset

    12 minutes
    • Define machine learning as learning a function from labeled or unlabeled data
    • Distinguish the three main paradigms: supervised, unsupervised, and reinforcement learning
    • Frame a real problem as a machine learning task with inputs and targets
  2. 1.2 Supervised vs Unsupervised Learning

    13 minutes
    • Explain how supervised learning uses labeled examples to predict outputs
    • Describe how unsupervised learning finds structure without labels
    • Match common tasks like clustering and classification to the correct paradigm
  3. 1.3 Setting Up a Scikit-learn Workflow

    15 minutes
    • Install and import the core scikit-learn and numpy toolchain
    • Load a dataset and split it into training and test sets
    • Fit a baseline estimator and generate predictions
  4. 1.4 Training and Test Data

    14 minutes
    • Explain why data must be split into training, validation, and test sets
    • Describe how data leakage undermines honest evaluation
    • Apply cross-validation to make better use of limited data

2. Regression

4 lessons

  1. 2.1 Linear Regression Explained

    14 minutes
    • Explain linear regression as fitting a line to minimize prediction error
    • Interpret coefficients and intercept in a fitted model
    • Train a linear regression model on a sample dataset
  2. 2.2 Cost Functions and Errors

    14 minutes
    • Define mean squared error and mean absolute error for regression
    • Explain how a cost function guides model optimization
    • Compare error metrics and choose one for a given problem
  3. 2.3 Gradient Descent Step by Step

    16 minutes
    • Explain gradient descent as iteratively moving downhill on the cost surface
    • Describe how the learning rate controls step size and convergence
    • Trace parameter updates across several iterations
  4. 2.4 Polynomial and Regularized Regression

    15 minutes
    • Extend linear models with polynomial features to fit curves
    • Explain how L1 and L2 regularization control model complexity
    • Compare Ridge and Lasso regression and their effects on coefficients

3. Classification

4 lessons

  1. 3.1 Classification Fundamentals

    14 minutes
    • Define classification as predicting discrete categories
    • Distinguish binary, multiclass, and multilabel classification
    • Train a logistic regression classifier and interpret probabilities
  2. 3.2 Evaluating Classifiers

    15 minutes
    • Read a confusion matrix to understand types of errors
    • Compute precision, recall, and F1 score
    • Interpret ROC curves and AUC for threshold selection
  3. 3.3 Decision Trees for Classification

    15 minutes
    • Explain how a decision tree splits data using feature thresholds
    • Describe impurity measures like Gini and entropy
    • Train and interpret a decision tree classifier
  4. 3.4 K-Nearest Neighbors and Naive Bayes

    14 minutes
    • Explain how k-nearest neighbors classifies by proximity
    • Describe the probabilistic reasoning behind naive Bayes
    • Compare when each algorithm performs well

4. Feature Engineering

4 lessons

  1. 4.1 Feature Engineering Essentials

    15 minutes
    • Explain how good features improve model performance more than model choice
    • Create derived features from raw columns
    • Handle missing values with sensible imputation strategies
  2. 4.2 Encoding Categorical Data

    14 minutes
    • Explain why models need numeric inputs and how to encode categories
    • Apply one-hot encoding and ordinal encoding appropriately
    • Recognize the pitfalls of high-cardinality categorical features
  3. 4.3 Scaling and Normalization

    13 minutes
    • Explain why feature scaling matters for distance-based and gradient methods
    • Apply standardization and min-max normalization
    • Fit scalers on training data only to avoid leakage
  4. 4.4 Feature Selection and Importance

    14 minutes
    • Explain why removing irrelevant features can improve models
    • Use feature importance scores to rank inputs
    • Apply correlation analysis and recursive elimination to select features

5. Model Evaluation and Tuning

4 lessons

  1. 5.1 Understanding Overfitting and Underfitting

    15 minutes
    • Define overfitting and underfitting in terms of the bias-variance trade-off
    • Diagnose fitting problems by comparing training and validation scores
    • Choose remedies such as more data, regularization, or simpler models
  2. 5.2 Cross-Validation Strategies

    14 minutes
    • Explain k-fold cross-validation and why it gives robust estimates
    • Apply stratified folds for imbalanced classification
    • Interpret cross-validation score variance
  3. 5.3 Hyperparameter Tuning

    15 minutes
    • Distinguish parameters learned from data from hyperparameters set by the user
    • Apply grid search and randomized search to find good settings
    • Avoid overfitting the validation set during tuning
  4. 5.4 Building an End-to-End Pipeline

    16 minutes
    • Combine preprocessing and modeling into a single scikit-learn pipeline
    • Explain how pipelines prevent leakage during cross-validation
    • Persist and reload a trained pipeline for reuse

6. Ensembles and Deep Learning

4 lessons

  1. 6.1 Random Forests and Bagging

    15 minutes
    • Explain how bagging combines many trees to reduce variance
    • Describe how random forests add feature randomness for diversity
    • Train a random forest and read its feature importances
  2. 6.2 Gradient Boosting Machines

    16 minutes
    • Explain how boosting builds models sequentially to correct errors
    • Compare gradient boosting with bagging approaches
    • Train a gradient boosting model with XGBoost
  3. 6.3 Introduction to Neural Networks with PyTorch

    17 minutes
    • Build a small feed-forward network with PyTorch modules
    • Define a loss function and optimizer for training
    • Run a training loop and monitor the loss
  4. 6.4 Deploying a Machine Learning Model

    17 minutes
    • Serialize a trained model for production use
    • Wrap a model behind a simple prediction API
    • Describe monitoring and retraining needs after deployment

7. Deep Learning Fundamentals

4 lessons

  1. 7.1 Neural Network Building Blocks

    15 minutes
    • Describe neurons, layers, and activation functions in a feed-forward network
    • Explain how weights and biases transform inputs into outputs
    • Choose activation functions such as ReLU and sigmoid for different layers
  2. 7.2 Backpropagation Intuition

    16 minutes
    • Explain how backpropagation computes gradients using the chain rule
    • Describe how errors flow backward through network layers
    • Connect gradient signals to weight updates during training
  3. 7.3 Training Dynamics and Optimizers

    16 minutes
    • Explain how batch size and learning rate affect training stability
    • Compare optimizers such as SGD and Adam
    • Diagnose training curves for signs of divergence or plateaus
  4. 7.4 Regularization for Deep Networks

    15 minutes
    • Explain how dropout reduces overfitting in neural networks
    • Describe batch normalization and weight decay
    • Apply early stopping based on validation performance

8. Modern Architectures

4 lessons

  1. 8.1 Convolutional Neural Networks

    16 minutes
    • Explain how convolution layers detect spatial patterns in images
    • Describe pooling, filters, and feature maps
    • Build a simple CNN for image classification
  2. 8.2 Sequence Models and RNNs

    16 minutes
    • Explain how recurrent networks process sequential data
    • Describe the vanishing gradient problem and how LSTMs address it
    • Identify tasks suited to sequence models
  3. 8.3 Transformers and Attention

    17 minutes
    • Explain the self-attention mechanism and why it scales well
    • Describe queries, keys, and values in attention
    • Outline how transformer blocks stack to form large models
  4. 8.4 Transfer Learning and Fine-Tuning

    16 minutes
    • Explain how pretrained models transfer knowledge to new tasks
    • Distinguish feature extraction from full fine-tuning
    • Adapt a pretrained model to a custom dataset

9. MLOps and Deployment

4 lessons

  1. 9.1 Experiment Tracking

    15 minutes
    • Explain why reproducible experiment tracking matters for ML projects
    • Log parameters, metrics, and artifacts across training runs
    • Compare runs to select the best model version
  2. 9.2 Model Packaging and Serving

    16 minutes
    • Package a trained model with its dependencies for deployment
    • Expose a model behind a prediction API endpoint
    • Explain batch versus real-time serving tradeoffs
  3. 9.3 Monitoring and Data Drift

    15 minutes
    • Explain why model performance degrades over time in production
    • Distinguish data drift from concept drift
    • Set up monitoring and retraining triggers
  4. 9.4 Responsible Machine Learning

    16 minutes
    • Identify sources of bias in data and models
    • Explain fairness metrics and model transparency techniques
    • Apply governance practices for accountable ML systems