Train a model

View as Markdown

API endpoint trains a ML model. To train a new model, the name is required and model_id should not be provided. To retrain an existing model, provide the model_id and do not provide the name.

Requires an API key with the write scope.

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
target_columnstringRequired
dataset_idstringRequiredformat: "uuid"
descriptionstring or nullOptional
task_typeenum or nullOptional
quality_presetenumOptionalDefaults to high_quality
feature_columnslist of strings or nullOptional
image_columnslist of strings or nullOptional
problem_typeenum or nullOptional
ml_model_idstring or nullOptionalformat: "uuid"
namestring or nullOptional

Response

OK
idstringformat: "uuid"
namestring
task_typestring
descriptionstring or nullOptional
target_columnstring or nullOptional
feature_columnslist of strings or nullOptional
image_columnslist of strings or nullOptional
problem_typestring or nullOptional
currently_activebooleanOptionalDefaults to false
statusstring or nullOptional
version_numberinteger or nullOptional
dataset_idstring or nullOptionalformat: "uuid"
quality_presetstring or nullOptional
error_messagestring or nullOptional
training_started_atdatetime or nullOptional
training_completed_atdatetime or nullOptional
evaluation_metricsmap from strings to any or nullOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error
503
Service Unavailable Error