Get diversity metrics data
Last updated
Was this helpful?
Last updated
Was this helpful?
Obtain metrics that describe the similarity and diversity of a dataset. To calculate these metrics, use the calculateDataQualityMetrics
endpoint.
/api/{projectId}/raw-data/data-quality/diversity
Project ID
curl -L \
--url 'https://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/data-quality/diversity' \
--header 'x-api-key: YOUR_API_KEY'
{
"success": true,
"error": "text",
"data": [
{
"labelId": 1,
"maxDistance": 1,
"clusterInfos": [
{
"idx": 1,
"vendiScore": 1,
"vendiRatio": 1,
"count": 1,
"distance": 1,
"leftIdx": 1,
"rightIdx": 1,
"indexes": [
1
],
"samples": [
{
"id": 2,
"filename": "idle01.d8Ae",
"signatureValidate": true,
"signatureMethod": "HS256",
"signatureKey": "text",
"created": "2025-02-21T18:18:02.378Z",
"lastModified": "2025-02-21T18:18:02.378Z",
"category": "training",
"coldstorageFilename": "text",
"label": "healthy-machine",
"intervalMs": 16,
"frequency": 62.5,
"originalIntervalMs": 16,
"originalFrequency": 62.5,
"deviceName": "text",
"deviceType": "text",
"valuesCount": 1,
"totalLengthMs": 1,
"added": "2025-02-21T18:18:02.378Z",
"thumbnailVideo": "text",
"thumbnailVideoFull": "text",
"isDisabled": true,
"isProcessing": true,
"processingJobId": 1,
"processingError": true,
"processingErrorString": "text",
"isCropped": true,
"projectId": 1,
"projectOwnerName": "text",
"projectName": "text",
"sha256Hash": "text",
"createdBySyntheticDataJobId": 1,
"boundingBoxesType": "object_detection",
"chartType": "chart",
"projectLabelingMethod": "single_label",
"sensors": [
{
"name": "accX",
"units": "text"
}
],
"boundingBoxes": [
{
"label": "text",
"x": 1,
"y": 1,
"width": 1,
"height": 1
}
],
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"structuredLabels": [
{
"startIndex": 1,
"endIndex": 1,
"label": "text"
}
],
"structuredLabelsList": [
"text"
],
"imageDimensions": {
"width": 1,
"height": 1
}
}
],
"windows": [
[
1
]
]
}
]
}
]
}
OK