← blog

feature engineering techniques that actually move the needle

January 18, 2025 · 13 min read

Feature engineering is where domain knowledge meets mathematics. These techniques consistently produced the largest AUC lifts in my Kaggle experiments.

categorical encoding comparison

Label, one-hot, ordinal, and target encoding each have a use case. Here's a decision tree for picking the right one...

interaction terms

Multiplying two features captures non-linear relationships that tree models handle natively but linear models miss...

time-based features

Extracting hour-of-day, day-of-week, and cyclical encodings from timestamps dramatically improves time-series models...

embeddings for high-cardinality categoricals

When one-hot creates thousands of columns, learned embeddings compress the representation without losing information...

featureengineering · ml · pandas

more

end-to-end machine learning pipelines in pythonexploratory data analysis with pandas & plotlybuilding autonomous ai agents with langchain & react