Machine learning foundations with scikit-learn

Learn how models learn, how to evaluate them honestly and how to build clean pipelines for classification and regression in Python

7 ratings 3,650 students Sample

Created by Fatima Idrissi

  • Updated September 2026
  • English
  • Beginner

What you will learn

  • Frame a business question as a classification or regression problem
  • Split data correctly and avoid data leakage
  • Train and compare linear models, trees, random forests and gradient boosting
  • Build preprocessing and model pipelines with scikit-learn
  • Evaluate models with appropriate metrics and cross validation
  • Tune hyperparameters, interpret results and save a trained pipeline

Course content

5 sections, 24 lessons, 4h 10m total

How machine learning works 5 lessons · 52 min
  • Video: What machine learning actually is Preview 8 min
  • Article: The workflow and our first model Preview 13 min
  • Article: Overfitting, underfitting and validation 13 min
  • Article: Preprocessing with pipelines 13 min
  • Quiz: Check your understanding 5 min
Models you should know 5 lessons · 55 min
  • Video: Linear and logistic regression 12 min
  • Video: Decision trees 11 min
  • Video: Random forests 11 min
  • Video: Gradient boosting 12 min
  • Article: k nearest neighbours and when distance matters 9 min
Measuring performance honestly 4 lessons · 44 min
  • Video: Confusion matrix, precision and recall 12 min
  • Video: ROC, precision recall curves and thresholds 12 min
  • Video: Regression metrics 10 min
  • Video: Imbalanced classes 10 min
Tuning and feature engineering 5 lessons · 53 min
  • Video: Hyperparameter search 12 min
  • Video: Feature engineering that helps 12 min
  • Article: Feature selection and simpler models 9 min
  • Video: Pipelines for regression problems 11 min
  • Video: Learning curves: do we need more data 9 min
Understanding and shipping models 5 lessons · 46 min
  • Video: Interpreting models with permutation importance 11 min
  • Video: Partial dependence and individual explanations 11 min
  • Article: Fairness and responsible use 9 min
  • Video: Saving, loading and predicting on new data 10 min
  • Quiz: Final check 5 min

Requirements

  • Basic Python and pandas
  • School level algebra

Description

Machine learning is a way of building programs that learn patterns from examples instead of following hand written rules. It powers spam filters, demand forecasts, fraud alerts and recommendation systems. Before deep learning or large language models, every practitioner needs the foundations: how models learn, how to measure them honestly and how to avoid the mistakes that make results look better than they are.

This course teaches those foundations with scikit-learn, the standard Python library for classical machine learning. We work on two realistic projects: predicting whether a customer will cancel a subscription, and estimating house prices.

What you will learn

  • The machine learning workflow from question to model
  • Train, validation and test splits, and why leakage ruins results
  • Linear and logistic regression, decision trees, random forests and gradient boosting
  • Preprocessing with pipelines and column transformers
  • Metrics for classification and regression, and choosing the right one
  • Cross validation and hyperparameter tuning
  • Handling imbalanced classes, interpreting models and saving them for later use

Approach

We start every project with a simple baseline, then add complexity only when it improves validated results. You will learn to distrust a single great number and to ask how it was measured. Code is short and explained line by line.

You need basic Python and pandas. The maths is explained intuitively; school algebra is enough.

Who this course is for

  • Analysts and developers starting with machine learning
  • Data scientists who want stronger fundamentals
  • Students preparing for more advanced ML courses

Instructor

Fatima Idrissi

Machine learning engineer teaching scikit-learn, PyTorch and modern NLP from the ground up

  • 4.4 instructor rating
  • 21 reviews
  • 7,660 students
  • 3 courses
  • Sample

I build and evaluate machine learning models, mostly for text and tabular data. My work covers the whole loop: preparing data, training baselines, trying deep learning when it is worth it, and measuring whether the model actually helps.

In my courses I start with the simplest model that could work and only add complexity when the numbers justify it. You will write the training loop yourself before using higher level tools, so nothing feels like magic.

I also enjoy reading papers and turning the useful parts into small, runnable notebooks.

View profile

Student reviews

4.4 7 ratings
5 star 57%
4 star 29%
3 star 14%
2 star 0%
1 star 0%
Ingrid S. Sep 25, 2026
Sample

Honest about what models can do

The fairness and interpretation lessons were thoughtful and practical, not preachy.

Victoria H. Sep 14, 2026
Sample

Leakage lesson saved my project

I had been scaling before splitting for months. The pipeline approach fixed my overly optimistic results.

Samuel O. Aug 7, 2026
Sample

Baselines first, always

Starting every project with a dummy model is such a simple habit, and it changed how I judge results.

Mei-ling C. Jun 22, 2026
Sample

Clear and practical

Very clear explanations of precision and recall. The gradient boosting part could go deeper.

Kristian L. May 8, 2026
Sample

Excellent threshold discussion

Choosing a threshold based on business costs was the most useful lesson for my work.

Adwoa B. Mar 23, 2026
Sample

Great foundation before deep learning

I feel ready for neural networks now. Some exercises lacked solutions in the repository.

Marco P. Jan 13, 2026
Sample

The pace varies between lessons

Some lessons are slow and others pack a lot in. The content quality is high throughout.

$59.99 Enroll now
SampleSample catalog: the instructors, courses, reviews and stats on this site are demo content.