ML From Scratch
Implement the classic machine learning toolkit with nothing but Python lists and loops. You will build regression, k-NN, k-means, decision trees, naive Bayes, PCA, and boosting, plus the metrics that tell you whether they work. Ideal for anyone who has called fit() and predict() but never written them.
Your progress
0/28 · 0%Path readiness 0%Easy 0% · Medium 0% · Hard 0%
Continue path · AccuracyWhat you will learn
- Implement regression, k-NN, k-means, trees, and naive Bayes in pure Python
- Split data honestly and compute the core classification and regression metrics
- Derive closed-form ridge regression and run power iteration for PCA
- Build boosting and matrix-factorization update steps from the maths
Before you start
1Data and Metrics
Machine learning starts with clean features and honest measurement. Standardize columns, encode categories, split folds, and compute accuracy, MSE, and distance.
- AccuracyEasyml-008ML Fundamentals
- Easy
- Easy
- Easy
- Easy
- Easy
- Medium
Stage checkpoint
0/2 to passA checkpoint is a short retrieval test drawn from this stage: solve 2 of 3 from memory to mark the stage complete. The stage stays open either way.
2Supervised Core
Fit the workhorse models: the sigmoid, linear regression, k-NN, and the loss gradients that train them, from MSE to binary cross-entropy.
- Easy
- Medium
- Medium
- Medium
- Medium
- Medium
- Medium
Stage checkpoint
0/2 to passA checkpoint is a short retrieval test drawn from this stage: solve 2 of 3 from memory to mark the stage complete. The stage stays open either way.
- MSE GradientMedium
- Binary Cross-Entropy LossMedium
- Gradient Descent StepMedium
3Trees, Clusters, and Ensembles
Split data by impurity, group it with k-means, and combine weak learners. Entropy, Gini, information gain, and AdaBoost's reweighting rule.
- EntropyEasyml-006ML Fundamentals
- Easy
- Medium
- Medium
- Hard
- Hard
- Hard
- Hard
Stage checkpoint
0/2 to passA checkpoint is a short retrieval test drawn from this stage: solve 2 of 3 from memory to mark the stage complete. The stage stays open either way.
4Regularization, Latent Structure, and Bayes
Control model complexity and find structure: ridge regression, naive Bayes, covariance matrices, power iteration, explained variance, and matrix-factorization SGD.
- Hard
- Hard
- Hard
- Hard
- Hard
- Hard
Stage checkpoint
0/2 to passA checkpoint is a short retrieval test drawn from this stage: solve 2 of 3 from memory to mark the stage complete. The stage stays open either way.
Capstone
LabClose the path with one real artifact from the catalog.
Take the classifier you wrote in the supervised stage onto held-out rows and beat the majority-class baseline.