Set thresholds

Set thresholds

post

Set thresholds (e.g. min. confidence rating, or min. anomaly score) for an impulse.

Authorizations
Path parameters
projectIdintegerRequired

Project ID

impulseIdintegerRequired

Impulse ID

Body
allowCreatingRegenerateModelTestingJobsbooleanRequired

Whether a call to this function is allowed to create jobs to regenerate model testing results (e.g. object detection datasets, or large datasets). This option is here because further calls to setImpulseThresholds are blocked while model testing jobs are running (so e.g. live classification has this to FALSE).

forceRunRegenerateModelTestingInJobbooleanOptional

If set, this'll force the creation of a job to regenerate the model testing results.

Responses
200
OK
application/json
Responseall of
post
POST /v1/api/{projectId}/impulse/{impulseId}/set-thresholds HTTP/1.1
Host: studio.edgeimpulse.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 143

{
  "thresholds": [
    {
      "blockId": 1,
      "key": "text",
      "value": 1
    }
  ],
  "allowCreatingRegenerateModelTestingJobs": true,
  "forceRunRegenerateModelTestingInJob": true
}
200

OK

{
  "success": true,
  "error": "text",
  "hadModelTestingResults": true,
  "regenerateModelTestingStatus": "not_regenerated",
  "regenerateModelTestingResultsJobId": 1
}

Last updated

Was this helpful?