Qm

Topic · Machine Learning & AI

← All topics

Feature Engineering

33 articles · 5 checkpoints · 19 deeper reads · 9 reference notes

A standalone topic: it is on no roadmap, so read it on its own terms.

Every article, in reading order

plant a flag as you finish each

Read these first

  1. One-hot encoding turns a category into a column of 0s and 1s so a model can use it, but it stops working cleanly once a category has hundreds or thousands of possible values, exactly the case for tickers, sectors and counterparties.

  2. A feature cross combines two features into one so a model can learn an interaction directly, instead of hoping it discovers on its own that the effect of one variable depends on another.

  3. Turning a time series into features a model can use means deciding how far back to look and how to summarise what you saw, get the boundary wrong and the model trains on information it wouldn't have had yet.

  4. A model that trains beautifully and fails live almost always broke the same rule, some piece of preprocessing was fit on data the model shouldn't have seen yet, or fit differently in training than in production.

  5. Choosing which features to keep before you split into train and test folds leaks information from the test set into the selection decision, the fix is to redo feature selection separately inside every fold.

Then the rest

Reference notes9 short entries