scikit-learn
The classic toolkit for tabular machine learning.
scikit-learn is taught here in 12 lessons, running from Estimators and fit/predict through to Persistence, inspection and reproducibility. Each lesson takes one topic, shows the working code, and links onward to the next, so the course can be read straight through in order.
| Track | AI & Intelligent Development |
| Lessons | 12 |
| Level | Beginner to intermediate |
| Reading time | about 3 hours |
| Prerequisites | Helpful, but not required: Machine Learning |
Lessons
- Estimators and fit/predictThe uniform API behind every scikit-learn model: fit, predict, transform, and the data shapes the library silently expects.
- Pipelines and preprocessingCompose preprocessing and a model into one object, keep the test set clean, and handle numeric and categorical columns in a single ColumnTransformer.
- Model selection and metricsNested cross-validation, grid and randomised search, and picking a metric that reflects the cost of being wrong rather than the one that flatters the model.
- Splitting data and cross-validation strategiestrain_test_split in detail, KFold, StratifiedKFold, GroupKFold, TimeSeriesSplit, and repeated evaluation that reports a spread instead of one lucky number.
- Linear modelsLinear and logistic regression, Ridge, Lasso, ElasticNet, how regularisation strength behaves, and how to read coefficients without being misled.
- Tree-based modelsDecision trees and their pruning knobs, random forests, HistGradientBoostingClassifier, and why impurity-based feature importances mislead.
- Support vector machines and kernelsSVC and SVR, the kernel trick, tuning C and gamma, why scaling is mandatory, and when an SVM is the right call at all.
- Clustering and manifold learningKMeans and MiniBatchKMeans, DBSCAN and AgglomerativeClustering, silhouette scores, PCA for compression and t-SNE for exploration.
- Feature engineering and text featuresOneHotEncoder, OrdinalEncoder, KBinsDiscretizer, PolynomialFeatures, and turning raw text into a matrix with CountVectorizer and TfidfVectorizer.
- Missing data and outliersSimpleImputer and KNNImputer inside a pipeline, indicator features for missingness, and robust scalers that stop outliers from dominating the fit.
- Imbalanced classificationclass_weight and threshold tuning, resampling with imbalanced-learn inside a pipeline, and measuring success with precision-recall rather than accuracy.
- Persistence, inspection and reproducibilityjoblib versus pickle trade-offs, pinning library versions, set_config and random_state discipline, and inspecting what a fitted pipeline actually learned.
More in AI & Intelligent Development
AI Basics AI Agents Math for AI Machine Learning TensorFlow PyTorch Natural Language Processing LangChain Ollama OpenCV Codex Claude Code OpenCode Vibe Coding Selenium Playwright
FAQ
How long does the scikit-learn course take?
It has 12 lessons, about 3 hours of reading. Expect roughly twice that if you type out and run every example.
Do I need prior experience for scikit-learn?
Not strictly. It helps to have read Machine Learning first, because some lessons build on it, but every lesson explains its own assumptions.
What should I read after scikit-learn?
Continue with TensorFlow (3 lessons), the next course in AI & Intelligent Development.
Last refreshed 2026-09-18.