Skip to main content

Machine Learning Fundamentals

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.

12Articles175 minTotal reading timeIntermediateLevel
Machine LearningPythonscikit-learnclassificationregression

Series Articles

  1. 1

    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.

  2. 2

    02 - Linear and Logistic Regression: From Theory to Practice

    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.

  3. 3

    03 - Decision Trees and Random Forest: How They Work

    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.

  4. 4

    04 - Support Vector Machines: Theory and Practical Implementation

    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.

  5. 5

    05 - KNN and Clustering: K-Means, DBSCAN and Where They Fail

    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.

  6. 6

    06 - Feature Engineering and Preprocessing: Data Ready for ML

    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.

  7. 7

    07 - Evaluation Metrics: Precision, Recall, F1 and ROC-AUC

    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.

  8. 8

    08 - Overfitting, Underfitting, and Regularization Techniques

    Measure bias and variance with 300 training sets, diagnose them with learning curves, and fix overfitting with Ridge, Lasso, C and early stopping.

  9. 9

    09 - Ensemble Methods: Bagging, Boosting, and Gradient Boosting

    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.

  10. 10

    10 - Recommendation Systems: Collaborative vs Content-Based

    Build collaborative filtering that handles missing ratings, a TF-IDF content-based model and matrix factorization, then score lists with precision@K and NDCG.

  11. 11

    11 - Transfer Learning and Fine-Tuning: Reusing a Model

    See transfer learning measured: pre-trained features beat raw pixels and random weights with few labels, plus fine-tuning and an unexecuted PyTorch schema.

  12. 12

    12 - End-to-End ML Pipeline: From Dataset to Production

    Chain validation, a shared pipeline, baseline comparison, a saved artifact, a FastAPI service and drift checks into one churn system, tried step by step.

Test your knowledge!

Have you read all the articles? Check how much you've learned by taking this series' quizzes.

Take the quiz!