cURL
curl --request POST \
--url http://studio.premai.io/api/v1/public/datasets/{datasetId}/start-augmentation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"datapoints_to_generate": 5005
}
'import requests
url = "http://studio.premai.io/api/v1/public/datasets/{datasetId}/start-augmentation"
payload = { "datapoints_to_generate": 5005 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({datapoints_to_generate: 5005})
};
fetch('http://studio.premai.io/api/v1/public/datasets/{datasetId}/start-augmentation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Datasets API
Start Data Augmentation
Start data augmentation process to generate additional training examples from existing datapoints.
POST
/
api
/
v1
/
public
/
datasets
/
{datasetId}
/
start-augmentation
cURL
curl --request POST \
--url http://studio.premai.io/api/v1/public/datasets/{datasetId}/start-augmentation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"datapoints_to_generate": 5005
}
'import requests
url = "http://studio.premai.io/api/v1/public/datasets/{datasetId}/start-augmentation"
payload = { "datapoints_to_generate": 5005 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({datapoints_to_generate: 5005})
};
fetch('http://studio.premai.io/api/v1/public/datasets/{datasetId}/start-augmentation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Number of new datapoints to generate
Required range:
10 <= x <= 10000Controls randomness in augmentation generation (0.0-1.0). Default: 0.1
Required range:
0 <= x <= 1Optional instructions to guide the augmentation process
Response
Data augmentation started successfully
Was this page helpful?