Machine learning with football · Chapter 5 · Numerical data

Feature vectors

A model never sees the table. It sees a short list of numbers per example, and choosing that list is feature engineering.

Estimated time: 5 minutes · page 2 of 9

What the model actually sees

A model never works on the table directly. For every example it takes a feature vector, a short list of floating point numbers. Every value has to be a number, so a team name, for instance, can't go in as it is.

The raw values usually don't go in unchanged either. Deciding how to turn them into numbers a model learns well from is feature engineering, and it often matters more than the choice of model. The two workhorses are normalization, which brings numbers onto a similar scale, and binning, which cuts them into ranges. Both get their own page.

The board shows one player as a row in the table and as the feature vector a model could get. Each number went through the treatment its shape asks for, explained on the next pages. Press Another player to compare.

Check yourself

What does a model actually take in for one player?
Deciding that goals should go in as ln(1 + goals) instead of the raw count is called what?

Leagues