Trained features for sample

Trained features for sample

Get trained features for a single sample. This runs both the DSP prerequisites and the anomaly classifier.

GEThttps://studio.edgeimpulse.com/v1/api/{projectId}/training/anomaly/{learnId}/features/get-graph/classification/{sampleId}
Path parameters
projectId*integer

Project ID

learnId*integer

Learn Block ID, use the impulse functions to retrieve the ID

sampleId*integer

Sample ID

Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

Optional error description (set if 'success' was false)

totalSampleCount*integer

Total number of windows in the data set

data*array of object
Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/training/anomaly/{learnId}/features/get-graph/classification/{sampleId}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text",
  "data": [
    {
      "X": {
        "0": -2.17,
        "11": 1.21,
        "22": 0.79
      },
      "label": 0
    }
  ]
}

Last updated