Add rows to a dataset from the curated pool
datasets.augment(strdataset_id, DatasetAugmentParams**kwargs) -> DatasetAugmentResponse
POST/api/v1/datasets/{dataset_id}/augment
Retrieves additional rows matching this dataset and returns them as a new dataset, leaving this one unchanged. The new dataset carries this dataset’s rows alongside the retrieved ones, so it can be trained on or downloaded directly. Poll GET /datasets/{dataset_id}/status on the returned id until it reaches succeeded. Set estimate=true to price the request without starting a run.
Parameters
domain_rows: Optional[float]
How many additional rows to retrieve from topics matching this dataset. Defaults to 0.
minimum0
maximum100000
general_rows: Optional[float]
How many additional rows to retrieve from other topics, to broaden the dataset. Defaults to 0.
minimum0
maximum100000
Add rows to a dataset from the curated pool
import os
from adaption import Adaption
client = Adaption(
api_key=os.environ.get("ADAPTION_API_KEY"), # This is the default and can be omitted
)
response = client.datasets.augment(
dataset_id="dataset_id",
)
print(response.dataset_id){
"dataset_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "running",
"estimated_credits_consumed": 40,
"estimate": true
}Returns Examples
{
"dataset_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "running",
"estimated_credits_consumed": 40,
"estimate": true
}