Scikit-learn
Master classical machine learning in Python — the estimator API, preprocessing pipelines, regression and classification, model selection and tuning, clustering and PCA, and honest end-to-end workflows.
Your progress
0 / 27 chapters
0%
01
Foundations
The ML workflow, the estimator API, splitting data, and the two ML families.
- 8mWhy Scikit-learnWhat scikit-learn is, and why it is the standard for classical machine learning.
- 9mThe ML WorkflowThe end-to-end path from raw data to a deployed model.
- 9mThe Estimator APIOne consistent interface — fit, predict, transform, score.
- 8mDatasets & SplittingLoad data and hold out a test set the right way.
- 8mSupervised vs UnsupervisedThe two families of ML — with and without labels.
02
Preprocessing
Scaling, encoding, imputation, pipelines and ColumnTransformer.
- 9mFeature ScalingPut features on the same scale so models treat them fairly.
- 8mEncoding CategoricalsTurn text categories into numbers models can use.
- 7mHandling Missing ValuesFill gaps with SimpleImputer so models can train.
- 9mPipelinesChain preprocessing and a model into one leakage-safe object.
- 8mColumnTransformerApply different preprocessing to different columns.
03
Regression
Linear regression, regularization, metrics, and tree ensembles.
- 9mLinear RegressionPredict a continuous value by fitting a line (or hyperplane).
- 9mRegularizationRidge and Lasso — prevent overfitting by shrinking coefficients.
- 8mRegression MetricsMeasure regression quality with MAE, RMSE and R².
- 9mTrees & EnsemblesNon-linear regression with decision trees, forests and boosting.
04
Classification
Logistic regression, KNN/SVM, trees, and the metrics that matter.
- 9mLogistic RegressionThe go-to baseline for classification — predicting probabilities.
- 9mKNN & SVMTwo intuitive classifiers — nearest neighbours and margins.
- 8mTrees & ForestsTree-based classifiers — interpretable and powerful.
- 10mClassification MetricsBeyond accuracy — precision, recall and F1.
- 8mConfusion Matrix & ROCSee exactly where a classifier is right and wrong.
05
Model Selection & Unsupervised
Cross-validation, tuning, bias-variance, clustering and PCA.
- 9mCross-ValidationA more reliable performance estimate than a single split.
- 9mHyperparameter TuningSearch for the best settings with grid and randomized search.
- 9mOverfitting & Bias-VarianceThe central tension in ML — and how to diagnose it.
- 8mClustering (K-Means)Group unlabelled data into segments.
- 8mDimensionality Reduction (PCA)Compress many features into a few, keeping most information.
06
Applied Scikit-learn
End-to-end pipelines, model persistence, and professional best practices.
