foryourhealth111-pixel/Vibe-Skills / bundled/skills/splitting-datasets
splitting-datasets
VerifiedSplit datasets into training, validation, and test partitions with the right stratification and temporal rules. Use as a narrow preprocessing helper once the broader ML workflow is already chosen, not as the main route owner for an end-to-end ML task.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.4 KB |
| assets/README.md | markdown | 308 B |
| assets/dataset_schema.json | config | 2.8 KB |
| assets/example_dataset.csv | other | 668 B |
| assets/split_data_config.yaml | config | 1.7 KB |
| references/README.md | markdown | 527 B |
| scripts/README.md | markdown | 302 B |
| scripts/split_data.py | script | 2.8 KB |
assets/split_data_config.yaml
View on GitHub# Configuration file for dataset splitting
# Input dataset parameters
input_dataset:
path: "REPLACE_ME/path/to/your/dataset.csv" # Path to the input dataset file
format: "csv" # Dataset format (e.g., csv, parquet, json)
header: True # Whether the dataset has a header row (True/False)
separator: "," # Separator used in the dataset (e.g., comma, tab, semicolon)
# Splitting ratios for training, validation, and testing sets
split_ratios:
train: 0.7 # Percentage of data for training (0.0 - 1.0)
validation: 0.15 # Percentage of data for validation (0.0 - 1.0)
test: 0.15 # Percentage of data for testing (0.0 - 1.0)
# Random seed for reproducibility
random_seed: 42 # Integer value for the random seed
# Output directory for split datasets
output_directory: "REPLACE_ME/path/to/output/directory" # Directory where the split datasets will be saved
# Naming convention for output files
output_names:
train: "train.csv" # Name of the training dataset file
validation: "validation.csv" # Name of the validation dataset file
test: "test.csv" # Name of the test dataset file
# Optional features (e.g., stratification)
features:
stratify: False # Whether to stratify the split based on a specific column (True/False)
stratify_column: "YOUR_VALUE_HERE" # Name of the column to use for stratification (if stratify is True)
shuffle: True # Whether to shuffle the data before splitting (True/False)
# Error handling configuration
error_handling:
on_error: "warn" # Action to take on error ("warn", "ignore", "raise") - default is warn
log_errors: True # Whether to log error messages to a file
# Logging configuration
logging:
level: "INFO" # Logging level (e.g., DEBUG, INFO, WARNING, ERROR, CRITICAL)
file: "split_data.log" # Log file pathRelated skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |