Training
The ID of the dataset to train the model on.
Integer corresponding to how much time we should spend on training. Higher values will take longer but generally be more accurate. Allowed values: 10 (Fastest), 60 (High Quality), 300 (Higher Quality), 1800 (Production)
Helps with predicting rare cases.
falseForces the creation of a new model even if another currently exists.
falseAn array of field names to ignore (case sensitive).
[]An array of field names to predict (case sensitive).
Successful Response
The ID of the task that was started. This is generally queryable at a nearby /status endpoint to get the current status of the task.
Validation Error
POST /api/v1/models/train/new HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 160
{
"dataset_id": "text",
"duration": 1,
"extra_attention": false,
"force": false,
"ignore_fields": [
"text"
],
"predict_fields": [
"text"
],
"ANY_ADDITIONAL_PROPERTY": "anything"
}{
"task_id": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
}Successful Response
Metadata, contextually dependent on the status of the task being queried.
The current status of the task being queried.
Validation Error
GET /api/v1/models/train/{task_id}/status HTTP/1.1
Accept: */*
{
"metadata": {
"type": "PENDING",
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"status": "PENDING",
"ANY_ADDITIONAL_PROPERTY": "anything"
}Successful Response
Validation Error
GET /api/v1/models/train/{task_id}/result HTTP/1.1
Accept: */*
{}Example Call Sequence
HTTP Headers
1. Create Request
2. Query for Task Status
3. Query for Result
Last updated
Was this helpful?