Machine Learning Course

Free online course · 9 lessons

The supervised and unsupervised learning toolkit: workflow, regression and classification, evaluation, regularization, tree ensembles, neural network basics, clustering and dimensionality reduction. After it the learner can train, validate and compare models with scikit-learn and avoid common pitfalls such as leakage.

By Studeli

Start with lesson 1

What you will learn in 9 lessons

Every lesson includes all nine study tools

  • Study Guide
  • Summary
  • Walkthroughs
  • Practice Questions
  • Flashcards
  • Explain It
  • Key Terms
  • Cheat Sheet
  • Concept Map
  1. Frame a prediction problem as supervised or unsupervised learning, split data into training, validation and test sets, and build a baseline model pipeline without data leakage.

    5 learning goals
    1. 1.Frame a problem for machine learning
    2. 2.Split data for honest evaluation
    3. 3.Train models and beat a baseline
    4. 4.Prevent data leakage
    5. 5.Build preprocessing and model pipelines in scikit-learn
  2. Train linear and polynomial regression models by minimizing a cost function with gradient descent and the normal equation, and apply feature scaling.

    5 learning goals
    1. 1.Build a linear regression model and measure its error
    2. 2.Train the model with gradient descent
    3. 3.Extend linear regression to many features with vectorized code
    4. 4.Scale features and model curved relationships
    5. 5.Solve linear regression in closed form, fit it with libraries and evaluate the result
  3. Train logistic regression and k-nearest-neighbor classifiers, interpret decision boundaries and predicted probabilities, and handle multiclass problems.

    6 learning goals
    1. 1.Build the logistic regression model for yes-or-no predictions
    2. 2.Train logistic regression by minimizing log loss
    3. 3.Classify into more than two classes
    4. 4.Classify with k-nearest neighbors
    5. 5.Classify with Bayes' rule: naive Bayes and discriminant analysis
    6. 6.Handle imbalanced classes
  4. Evaluate models with appropriate metrics and cross-validation, diagnose bias and variance with learning curves, and tune and select models without touching the test set.

    6 learning goals
    1. 1.Measure how well a regression model predicts
    2. 2.Evaluate classifiers with the confusion matrix
    3. 3.Compare classifiers across thresholds with ROC and precision–recall curves
    4. 4.Estimate performance on new data with held-out sets and cross-validation
    5. 5.Diagnose underfitting and overfitting with bias, variance and learning curves
    6. 6.Tune hyperparameters and select a model without touching the test set
  5. Reduce overfitting with ridge, lasso and feature selection, and engineer, encode and scale features inside reproducible pipelines.

    5 learning goals
    1. 1.Diagnose overfitting and underfitting
    2. 2.Shrink coefficients with ridge, lasso and elastic net
    3. 3.Select the features a model uses
    4. 4.Engineer, encode and scale features
    5. 5.Build reproducible preprocessing pipelines
  6. Train decision trees, random forests and gradient-boosted trees, tune them, and interpret feature importance.

    6 learning goals
    1. 1.Build and read decision trees
    2. 2.Control tree complexity with stopping rules and pruning
    3. 3.Reduce variance with bagging and random forests
    4. 4.Reduce bias with gradient boosting and XGBoost
    5. 5.Interpret feature importance in tree models
    6. 6.Tune tree ensembles and choose the right model
  7. Explain how neurons, layers and activation functions form a neural network, and train a small network for classification with a deep-learning framework.

    6 learning goals
    1. 1.Explain how neurons, activations and layers form a network
    2. 2.Compute predictions with forward propagation
    3. 3.Produce and score multiclass predictions
    4. 4.Explain how a network learns from data
    5. 5.Train a small classifier with TensorFlow or PyTorch
    6. 6.Decide when a neural network is the right tool
  8. Group unlabeled data with k-means and hierarchical clustering, choose the number of clusters, and detect anomalies with density-based methods.

    6 learning goals
    1. 1.Prepare data for clustering
    2. 2.Group data with k-means
    3. 3.Choose the number of clusters and judge the result
    4. 4.Build and read hierarchical clusterings
    5. 5.Find dense clusters and noise with DBSCAN
    6. 6.Detect anomalies with a Gaussian model
  9. Reduce the dimension of data with principal component analysis, interpret loadings and explained variance, and visualize high-dimensional data.

    6 learning goals
    1. 1.Explain why and how data dimensions are reduced
    2. 2.Find principal components and interpret them
    3. 3.Prepare data for PCA and recognize its limits
    4. 4.Decide how many components to keep
    5. 5.Apply PCA in Python for visualization and modeling
    6. 6.Explore nonlinear structure with t-SNE and UMAP

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started