sample_dataset
Create a representative subset of a dataset using random, stratified, systematic, first n, or last n sampling methods.
Instructions
Create a sample from a dataset
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dataset_name": "<dataset_name>",
"output_name": "<output_name>"
},
"name": "sample_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_name | Yes | Name of the dataset to sample | |
| sample_method | No | Sampling method | random |
| sample_size | No | Sample size (as fraction if <1, as count if >=1) | |
| target_column | No | Target column for stratified sampling | |
| output_name | Yes | Name for the sampled dataset | |
| random_state | No | Random seed for reproducibility |