Predict

View as Markdown

Run predictions with a trained ML model.

Identify the model by ml_model_id, or by ml_model_name (the name of a non-archived model). Each row in data maps the model’s feature columns to values — use the ml-models tool to discover models and the columns each expects. Returns one prediction per input row, plus per-class probabilities for classifiers.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
datalist of maps from strings to anyRequired
ml_model_idstring or nullOptionalformat: "uuid"
ml_model_namestring or nullOptional

Response

OK
predictionslist of any
model_idstringformat: "uuid"
model_namestring
probabilitieslist of maps from strings to any or null
annotationslist of objects or null

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error
502
Bad Gateway Error