Context rows and rows to predict
Every prediction involves two sets of rows.- Context rows have a known answer. In classic machine learning these would be your training set.
- Rows to predict have no answer yet. These are the rows you want scored.
- Sending a context is one pass of the model over your rows, not a training run. There is nothing to tune.
- You can change the context, for example by adding last week’s rows, and predict again straight away.
- The context is part of the input. A different set of context rows can give different predictions, in the same way that a different training set gives a different model.
What the model reads in a row
The model reads each cell of a row as what it is: a number, a category, a date, a text, an image or an embedding. It does not need numbers scaled, categories encoded, or missing values filled. The page on inputs explains how each kind of cell is handled. The model does not read column names. So a table with English column names and the same table with column names in another language give the same predictions.When rows come in sequences
Many tables are not a set of independent rows. They are sequences: a customer has many months of history, and an account moves through stages. For such data you tell the model which column holds the date and which column holds the customer or account. The model then reads each row in its place in time.- A row to predict reads only the context answers that were known before its own date.
- A row also reads the earlier rows of its own customer or account.
- Nothing dated after a row is used for that row.