cURL
curl --request GET \ --url https://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/ratio \ --header 'x-api-key: <api-key>'
{ "success": true, "ratio": { "training": 123, "testing": 123 }, "error": "<string>" }
Retrieve number of samples in train and test set.
Project ID
OK
Whether the operation succeeded
Show child attributes
number of training samples after rebalance
number of testing samples after rebalance. This ignores test data with a label that's not in the training dataset.
Optional error description (set if 'success' was false)
Was this page helpful?