cURL
curl --request POST \ --url http://studio.premai.io/api/v1/public/snapshots/create \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "split_percentage": 80 } '
{ "snapshot_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
Split a dataset into training and validation and build a snapshot.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Dataset ID to snapshot. The dataset must belong to the authenticated workspace.
Percentage of datapoints to assign to training. Remaining datapoints go to validation.
1 <= x <= 99
Snapshot created successfully
Was this page helpful?