Skip to main content
POST
Predict rows against a context

Authorizations

Authorization
string
header
required

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

Body

application/json
context_id
string
required

From /v1/fit.

rows
Rows · object[]
required

The rows to predict, with the context's columns (the target is not needed).

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.

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