Data Sampling
Input Data (JSON Array)
Sampling Configuration
Using the same seed will produce the same sample for identical inputs
Example Input
[
{
"id": 1,
"category": "Electronics",
"product": "Laptop",
"price": 1200,
"inStock": true
},
{
"id": 2,
"category": "Electronics",
"product": "Phone",
"price": 800,
"inStock": true
},
{
"id": 3,
"category": "Books",
"product": "JavaScript Guide",
"price": 50,
"inStock": false
}
]Example Configurations:
- Simple random sample: 50% of records
- Stratified sample by category: 30% from each category
- Fixed size sample: 100 records with seed for reproducibility