Three kinds of task
The examples use a database sent as in Databases, and the
API, HEADERS and records set up in the Quickstart.
next_days
The measures are:
A mean, a maximum and a share need at least one event in the window. With
rows set to all, an entity with no event in an example’s window gets no example for that date.
How the examples are built
You give the date to stand at withat. By default it is the database’s last date. tabSutra then:
- picks 12 dates, one window apart, the latest one window before
at, so that every answer is known byat; - leaves out dates that have less than two windows (or a tenth of the database’s span) of history before them;
- computes the answer of every entity at each date from the events in the window after it;
- predicts the answer at
atfor the entities chosen byrows.
n_dates. Nothing dated after at is read, so you can stand at a past date and compare the predictions with what happened.
The report lists the dates of the examples and the number of examples made.
next_items
at. To choose them yourself, add "rows": [list of source keys]. The answer is a recommendation, as described in Recommendation.
fill_column
segment from the rows of customers that have one. It reads it as a table, including its text columns. Send these bodies to /v1/databases/{database_id}/tasks/predict.
Evaluate a task
/v1/databases/{database_id}/tasks/evaluate builds the examples in the same way and holds out the latest dates.
next_items it gives MAP@k, and for fill_column it gives the scores of a table.