01 - Types of Machine Learning: Which One Fits Your Problem
Machine Learning in three families: supervised, unsupervised and reinforcement learning, with runnable scikit-learn listings and a rule for choosing.
Twelve articles with executed listings: regression, trees, SVM, KNN and clustering, preprocessing, metrics, overfitting, ensembles, recommenders, transfer learning and an end-to-end pipeline with scikit-learn.
This series collects 12 articles (approximately 175 minutes of total reading time), designed for a level Intermediate. The main topics covered are Machine Learning, Python, scikit-learn, classification.
Machine Learning in three families: supervised, unsupervised and reinforcement learning, with runnable scikit-learn listings and a rule for choosing.
Build linear regression and gradient descent by hand, see when it diverges, then add the sigmoid for logistic regression and read the weights in scikit-learn.
Compute Gini, entropy and information gain by hand, read a tree's rules, prune it, then see why a random forest is steadier and where importances mislead.
Verify that support vectors are the only points that count, tune C and gamma without leaking the test set, and see the kernel trick as numbers in scikit-learn.
Run KNN by hand, choose K without touching the test set, and see where K-Means, Ward, single linkage and DBSCAN agree or fail on data with a known answer.
Impute, encode, scale and detect outliers in scikit-learn, then measure data leakage (0.79 against 0.50 on pure noise) and fix it with a Pipeline.
Unmask an accuracy inflated by the majority class, pick the threshold on the training set, and read ROC-AUC next to precision-recall when positives are rare.
Measure bias and variance with 300 training sets, diagnose them with learning curves, and fix overfitting with Ridge, Lasso, C and early stopping.
Compare bagging, forests and boosting on noisy data, build gradient boosting by hand and check it against scikit-learn, then tune without leaking the test set.
Build collaborative filtering that handles missing ratings, a TF-IDF content-based model and matrix factorization, then score lists with precision@K and NDCG.
See transfer learning measured: pre-trained features beat raw pixels and random weights with few labels, plus fine-tuning and an unexecuted PyTorch schema.
Chain validation, a shared pipeline, baseline comparison, a saved artifact, a FastAPI service and drift checks into one churn system, tried step by step.
Have you read all the articles? Check how much you've learned by taking this series' quizzes.