Skip to main content
POST
Predict a task described in words

Authorizations

Authorization
string
header
required

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

Path Parameters

database_id
string
required

Body

application/json
task
Task · object
required

A task in words. next_days: {"kind": "next_days", "entity", "events", "measure" (count, sum, mean, max, share, any, none, more_than, any_matching), "column", "where", "threshold", "window_days", "rows" (all, active, with_events), "through", "exclude_columns"}. next_items: {"kind": "next_items", "source", "items", "events", "window_days", "k", "rows"}. fill_column: {"kind": "fill_column", "table", "column", "task"}.

Example:
outputs
string[] | null

classification: label, probabilities. regression: mean, median, quantiles, interval. Default: all of them.

quantiles
number[]

Regression: the levels (between 0 and 1) of the quantiles returned.

coverage
number
default:0.8

Regression: the share of the predicted distribution the interval holds.

at
string | null

Stand at this date: nothing dated after it is read (default: the database's last date).

n_dates
integer
default:12

next_days: the dates the examples are made at, one window apart.

Required range: 1 <= x <= 64
target_range
Target Range · object | null

Regression: outputs are clipped to [low, high].

explain
boolean
default:false

Add to each prediction the contribution of each input to it. See Explanations.

explain_top
integer
default:10

The number of largest contributions returned per prediction.

Required range: 1 <= x <= 100
explain_class
string | null

Classification: the class whose probability is explained. Default: the predicted label.

Response

Successful Response

predictions
Predictions · object[]
required

One object per row, keyed by 'id' (the id column, or the row's position).

report
Report · object
required