Rebalance dataset

Rebalance dataset

Rebalances the dataset over training / testing categories. This resets the category for all data and splits it 80%/20% between training and testing. This is a deterministic process based on the hash of the name of the data.

POSThttps://studio.edgeimpulse.com/v1/api/{projectId}/rebalance
Path parameters
projectId*integer

Project ID

Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

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

ratioobject
Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/rebalance', {
    method: 'POST',
    headers: {},
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text",
  "ratio": {}
}

Last updated