Test pretrained model

Test pretrained model

post

Test out a pretrained model (using raw features) - upload first via uploadPretrainedModel. If you want to deploy a pretrained model from the API, see startDeployPretrainedModelJob.

Authorizations
Path parameters
projectIdintegerRequired

Project ID

Query parameters
impulseIdintegerOptional

Impulse ID. If this is unset then the default impulse is used.

Body
featuresnumber[]Required
Responses
200
OK
application/json
Responseall of
post
POST /v1/api/{projectId}/pretrained-model/test HTTP/1.1
Host: studio.edgeimpulse.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 158

{
  "features": [
    1
  ],
  "modelInfo": {
    "input": {
      "inputType": "time-series",
      "frequencyHz": 1,
      "windowLengthMs": 1
    },
    "model": {
      "modelType": "classification",
      "labels": [
        "text"
      ]
    }
  }
}
200

OK

{
  "success": true,
  "error": "text",
  "result": {
    "ANY_ADDITIONAL_PROPERTY": 1
  },
  "boundingBoxes": [
    {
      "label": "text",
      "x": 1,
      "y": 1,
      "width": 1,
      "height": 1,
      "score": 1
    }
  ]
}

Last updated

Was this helpful?