Anomaly information

Anomaly information

Get information about an anomaly block, such as its dependencies. Use the impulse blocks to find the learnId.

GEThttps://studio.edgeimpulse.com/v1/api/{projectId}/training/anomaly/{learnId}
Path parameters
projectId*integer

Project ID

learnId*integer

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

Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

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

dependencies*DependencyData (object)
name*string
axes*array of object

Selectable axes for the anomaly detection block

trained*boolean

Whether the block is trained

clusterCountinteger

Number of clusters for K-means, or number of components for GMM (in config)

selectedAxes*array of integer

Selected clusters (in config)

minimumConfidenceRating*number

Minimum confidence rating for this block, scores above this number will be flagged as anomaly.

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/training/anomaly/{learnId}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text",
  "dependencies": {
    "classes": [
      "text"
    ],
    "blockNames": [
      "text"
    ]
  },
  "name": "text",
  "axes": [
    {
      "label": "text",
      "selected": false,
      "favourite": false
    }
  ],
  "trained": false,
  "selectedAxes": [],
  "minimumConfidenceRating": 0
}

Last updated