Skip to main content
POST
How good are the predictions: hold out the latest examples and score them

Authorizations

Authorization
string
header
required

Your API key, sent as 'Authorization: Bearer '.

Path Parameters

database_id
string
required

Body

application/json
entity_table
string
required

The table whose rows get an answer (customers, drivers, posts).

Example:

"customers"

entity_column
string
required

The column of the examples and of the rows to predict that holds the entity table's primary key.

Example:

"customer_id"

time_column
string
required

The column of the examples and of the rows to predict that holds the date.

Example:

"date"

target
string
required

The column of the examples that holds the answer.

Example:

"spend_next_30_days"

task
enum<string>
required

'classification' (a category: will the customer buy) or 'regression' (a number: how much).

Available options:
classification,
regression
window_days
number
required

The answer is about the window_days days after the date; an example's answer is known that long after its date.

Example:

30

examples
Examples · object[]
required

Labelled examples. Those of the latest dates are held out and predicted from the earlier ones.

exclude_columns
string[]

'table.column' entries the model must not read (a column that holds the answer itself).

Example:
holdout
number
default:0.2

About this share of the examples is held out (whole dates, the latest).

Required range: 0.05 <= x <= 0.5

Response

Successful Response