Skip to main content

Predict

Use the latest model for the given project to predict on a batch of datapoints and return the result

Path Parameters
project_id Project Id REQUIRED
Request Body REQUIRED
batch_id User-provided batch ID REQUIRED
data object[] REQUIRED
Responses
200

Successful Response

Schema
project_id Project Id REQUIRED
predictions object[] REQUIRED
learner_id Learner Id REQUIRED
batch_id Batch Id REQUIRED
input object REQUIRED
output object[] REQUIRED
output The name of the associated project output definition.
task_type object
value The value of the output (either classification or span values)
explanation An explanation for how the output value was determined.
id A unique identifier for the output value.
object Object
422

Validation Error

Schema
detail object[]
loc string[] REQUIRED
msg Message REQUIRED
type Error Type REQUIRED