Models

Train a personalized model

post
/models/train
Authorizations
Body
userIdstringRequired
sessionIdsstring[]Required
labelsstring[]RequiredExample: ["focus","calm","load"]
algostring · enumOptionalDefault: gbdtPossible values:
Responses
202

Training started

application/json
post
/models/train
POST /v1/models/train HTTP/1.1
Host: api.haloproject.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 86

{
  "userId": "text",
  "sessionIds": [
    "text"
  ],
  "labels": [
    "focus",
    "calm",
    "load"
  ],
  "algo": "gbdt"
}
202

Training started

{
  "status": "ok",
  "id": "text"
}

Last updated

Was this helpful?