Get label noise data

Get label noise data

Obtain metrics that describe potential label noise issues in the dataset. To calculate these metrics, use the calculateDataQualityMetrics endpoint.

GEThttps://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/data-quality/label-noise
Path parameters
projectId*integer

Project ID

Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

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

data*object
Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/data-quality/label-noise', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text",
  "data": {
    "cosineSimilarity": {
      "similarButDifferentLabel": [
        {
          "sample": {
            "id": 2,
            "filename": "idle01.d8Ae",
            "signatureValidate": true,
            "signatureMethod": "HS256",
            "signatureKey": "text",
            "created": "2024-07-04T18:08:51.073Z",
            "lastModified": "2024-07-04T18:08:51.073Z",
            "category": "training",
            "coldstorageFilename": "text",
            "label": "healthy-machine",
            "intervalMs": 16,
            "frequency": 62.5,
            "originalIntervalMs": 16,
            "originalFrequency": 62.5,
            "deviceName": "text",
            "deviceType": "text",
            "sensors": [
              {
                "name": "accX",
                "units": "text"
              }
            ],
            "totalLengthMs": 0,
            "added": "2024-07-04T18:08:51.073Z",
            "boundingBoxes": [
              {
                "label": "text"
              }
            ],
            "boundingBoxesType": "object_detection",
            "chartType": "chart",
            "thumbnailVideo": "text",
            "thumbnailVideoFull": "text",
            "isDisabled": false,
            "isProcessing": false,
            "processingError": false,
            "processingErrorString": "text",
            "isCropped": false,
            "projectOwnerName": "text",
            "projectName": "text",
            "projectLabelingMethod": "single_label",
            "sha256Hash": "text",
            "structuredLabels": [
              {
                "label": "text"
              }
            ],
            "structuredLabelsList": [
              "text"
            ]
          },
          "issues": [
            {
              "sample": {
                "id": 2,
                "filename": "idle01.d8Ae",
                "signatureValidate": true,
                "signatureMethod": "HS256",
                "signatureKey": "text",
                "created": "2024-07-04T18:08:51.073Z",
                "lastModified": "2024-07-04T18:08:51.073Z",
                "category": "training",
                "coldstorageFilename": "text",
                "label": "healthy-machine",
                "intervalMs": 16,
                "frequency": 62.5,
                "originalIntervalMs": 16,
                "originalFrequency": 62.5,
                "deviceName": "text",
                "deviceType": "text",
                "sensors": [
                  {
                    "name": "accX",
                    "units": "text"
                  }
                ],
                "totalLengthMs": 0,
                "added": "2024-07-04T18:08:51.073Z",
                "boundingBoxes": [
                  {
                    "label": "text"
                  }
                ],
                "boundingBoxesType": "object_detection",
                "chartType": "chart",
                "thumbnailVideo": "text",
                "thumbnailVideoFull": "text",
                "isDisabled": false,
                "isProcessing": false,
                "processingError": false,
                "processingErrorString": "text",
                "isCropped": false,
                "projectOwnerName": "text",
                "projectName": "text",
                "projectLabelingMethod": "single_label",
                "sha256Hash": "text",
                "structuredLabels": [
                  {
                    "label": "text"
                  }
                ],
                "structuredLabelsList": [
                  "text"
                ]
              },
              "windows": [
                {
                  "score": 0
                }
              ]
            }
          ]
        }
      ],
      "differentButSameLabel": [
        {
          "sample": {
            "id": 2,
            "filename": "idle01.d8Ae",
            "signatureValidate": true,
            "signatureMethod": "HS256",
            "signatureKey": "text",
            "created": "2024-07-04T18:08:51.073Z",
            "lastModified": "2024-07-04T18:08:51.073Z",
            "category": "training",
            "coldstorageFilename": "text",
            "label": "healthy-machine",
            "intervalMs": 16,
            "frequency": 62.5,
            "originalIntervalMs": 16,
            "originalFrequency": 62.5,
            "deviceName": "text",
            "deviceType": "text",
            "sensors": [
              {
                "name": "accX",
                "units": "text"
              }
            ],
            "totalLengthMs": 0,
            "added": "2024-07-04T18:08:51.073Z",
            "boundingBoxes": [
              {
                "label": "text"
              }
            ],
            "boundingBoxesType": "object_detection",
            "chartType": "chart",
            "thumbnailVideo": "text",
            "thumbnailVideoFull": "text",
            "isDisabled": false,
            "isProcessing": false,
            "processingError": false,
            "processingErrorString": "text",
            "isCropped": false,
            "projectOwnerName": "text",
            "projectName": "text",
            "projectLabelingMethod": "single_label",
            "sha256Hash": "text",
            "structuredLabels": [
              {
                "label": "text"
              }
            ],
            "structuredLabelsList": [
              "text"
            ]
          },
          "issues": [
            {
              "sample": {
                "id": 2,
                "filename": "idle01.d8Ae",
                "signatureValidate": true,
                "signatureMethod": "HS256",
                "signatureKey": "text",
                "created": "2024-07-04T18:08:51.073Z",
                "lastModified": "2024-07-04T18:08:51.073Z",
                "category": "training",
                "coldstorageFilename": "text",
                "label": "healthy-machine",
                "intervalMs": 16,
                "frequency": 62.5,
                "originalIntervalMs": 16,
                "originalFrequency": 62.5,
                "deviceName": "text",
                "deviceType": "text",
                "sensors": [
                  {
                    "name": "accX",
                    "units": "text"
                  }
                ],
                "totalLengthMs": 0,
                "added": "2024-07-04T18:08:51.073Z",
                "boundingBoxes": [
                  {
                    "label": "text"
                  }
                ],
                "boundingBoxesType": "object_detection",
                "chartType": "chart",
                "thumbnailVideo": "text",
                "thumbnailVideoFull": "text",
                "isDisabled": false,
                "isProcessing": false,
                "processingError": false,
                "processingErrorString": "text",
                "isCropped": false,
                "projectOwnerName": "text",
                "projectName": "text",
                "projectLabelingMethod": "single_label",
                "sha256Hash": "text",
                "structuredLabels": [
                  {
                    "label": "text"
                  }
                ],
                "structuredLabelsList": [
                  "text"
                ]
              },
              "windows": [
                {
                  "score": 0
                }
              ]
            }
          ]
        }
      ]
    },
    "neighbors": {
      "scoresAndNeighbors": [
        {
          "sample": {
            "id": 2,
            "filename": "idle01.d8Ae",
            "signatureValidate": true,
            "signatureMethod": "HS256",
            "signatureKey": "text",
            "created": "2024-07-04T18:08:51.073Z",
            "lastModified": "2024-07-04T18:08:51.073Z",
            "category": "training",
            "coldstorageFilename": "text",
            "label": "healthy-machine",
            "intervalMs": 16,
            "frequency": 62.5,
            "originalIntervalMs": 16,
            "originalFrequency": 62.5,
            "deviceName": "text",
            "deviceType": "text",
            "sensors": [
              {
                "name": "accX",
                "units": "text"
              }
            ],
            "totalLengthMs": 0,
            "added": "2024-07-04T18:08:51.073Z",
            "boundingBoxes": [
              {
                "label": "text"
              }
            ],
            "boundingBoxesType": "object_detection",
            "chartType": "chart",
            "thumbnailVideo": "text",
            "thumbnailVideoFull": "text",
            "isDisabled": false,
            "isProcessing": false,
            "processingError": false,
            "processingErrorString": "text",
            "isCropped": false,
            "projectOwnerName": "text",
            "projectName": "text",
            "projectLabelingMethod": "single_label",
            "sha256Hash": "text",
            "structuredLabels": [
              {
                "label": "text"
              }
            ],
            "structuredLabelsList": [
              "text"
            ]
          },
          "score": 0,
          "neighborWindows": [
            {
              "sample": {
                "id": 2,
                "filename": "idle01.d8Ae",
                "signatureValidate": true,
                "signatureMethod": "HS256",
                "signatureKey": "text",
                "created": "2024-07-04T18:08:51.073Z",
                "lastModified": "2024-07-04T18:08:51.073Z",
                "category": "training",
                "coldstorageFilename": "text",
                "label": "healthy-machine",
                "intervalMs": 16,
                "frequency": 62.5,
                "originalIntervalMs": 16,
                "originalFrequency": 62.5,
                "deviceName": "text",
                "deviceType": "text",
                "sensors": [
                  {
                    "name": "accX",
                    "units": "text"
                  }
                ],
                "totalLengthMs": 0,
                "added": "2024-07-04T18:08:51.073Z",
                "boundingBoxes": [
                  {
                    "label": "text"
                  }
                ],
                "boundingBoxesType": "object_detection",
                "chartType": "chart",
                "thumbnailVideo": "text",
                "thumbnailVideoFull": "text",
                "isDisabled": false,
                "isProcessing": false,
                "processingError": false,
                "processingErrorString": "text",
                "isCropped": false,
                "projectOwnerName": "text",
                "projectName": "text",
                "projectLabelingMethod": "single_label",
                "sha256Hash": "text",
                "structuredLabels": [
                  {
                    "label": "text"
                  }
                ],
                "structuredLabelsList": [
                  "text"
                ]
              }
            }
          ]
        }
      ]
    },
    "crossValidation": {
      "scores": [
        {
          "sample": {
            "id": 2,
            "filename": "idle01.d8Ae",
            "signatureValidate": true,
            "signatureMethod": "HS256",
            "signatureKey": "text",
            "created": "2024-07-04T18:08:51.073Z",
            "lastModified": "2024-07-04T18:08:51.073Z",
            "category": "training",
            "coldstorageFilename": "text",
            "label": "healthy-machine",
            "intervalMs": 16,
            "frequency": 62.5,
            "originalIntervalMs": 16,
            "originalFrequency": 62.5,
            "deviceName": "text",
            "deviceType": "text",
            "sensors": [
              {
                "name": "accX",
                "units": "text"
              }
            ],
            "totalLengthMs": 0,
            "added": "2024-07-04T18:08:51.073Z",
            "boundingBoxes": [
              {
                "label": "text"
              }
            ],
            "boundingBoxesType": "object_detection",
            "chartType": "chart",
            "thumbnailVideo": "text",
            "thumbnailVideoFull": "text",
            "isDisabled": false,
            "isProcessing": false,
            "processingError": false,
            "processingErrorString": "text",
            "isCropped": false,
            "projectOwnerName": "text",
            "projectName": "text",
            "projectLabelingMethod": "single_label",
            "sha256Hash": "text",
            "structuredLabels": [
              {
                "label": "text"
              }
            ],
            "structuredLabelsList": [
              "text"
            ]
          },
          "probability": 0,
          "score": 0
        }
      ]
    }
  }
}

Last updated