-
Which model when: a practical decision playbook for tabular, text, images, and small data
Model selection gets easier when you stop asking, “What is the best machine-learning model?” and ask a more useful set of questions:
-
sklearn Pipeline and ColumnTransformer: preprocessing that cannot leak
This tutorial targets scikit-learn 1.9.0 , the current stable release as of August 2026. The current documentation describes Pipeline as the mechanism for assembling preprocessing and estimators so th
-
Rolling windows and lag features: time series into supervised learning without leaking the future
A time series becomes a supervised-learning table when each row represents a prediction decision:
-
Scaling and normalization: StandardScaler vs MinMaxScaler vs RobustScaler, and the models that don’t care
Suppose a dataset contains two useful features:
-
Encoders shootout: one-hot, ordinal, target, and hashing — when each wins and when it leaks
Categorical features are everywhere in tabular machine learning: