Anomaly metadata

Anomaly metadata

Get metadata about a trained anomaly block. Use the impulse blocks to find the learnId.

GEThttps://studio.edgeimpulse.com/v1/api/{projectId}/training/anomaly/{learnId}/metadata
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)

created*string (date-time)

Date when the model was trained

scale*array of number

Scale input for StandardScaler. Values are scaled like this (where ix is axis index): input[ix] = (input[ix] - mean[ix]) / scale[ix];

mean*array of number

Mean input for StandardScaler. Values are scaled like this (where ix is axis index): input[ix] = (input[ix] - mean[ix]) / scale[ix];

clusters*array of object

Trained K-means clusters

axes*array of integer

Which axes were included during training (by index)

Example: "`[ 0, 11, 22 ]`"
defaultMinimumConfidenceRatingnumber

Default minimum confidence rating required before tagging as anomaly, based on scores of training data (GMM only).

availableModelTypesarray of KerasModelTypeEnum (enum)

The types of model that are available

recommendedModelTypeKerasModelTypeEnum (enum)
int8float32akidarequiresRetrain
modelValidationMetricsarray of KerasModelMetadataMetrics (object)

Metrics for each of the available model types

hasTrainedModelboolean
Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/training/anomaly/{learnId}/metadata', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text",
  "created": "2024-07-23T17:05:00.655Z",
  "scale": [
    0
  ],
  "mean": [
    0
  ],
  "clusters": [
    {
      "center": [
        0
      ],
      "maxError": 0
    }
  ],
  "axes": "`[ 0, 11, 22 ]`",
  "defaultMinimumConfidenceRating": 0,
  "availableModelTypes": [
    "int8"
  ],