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/dataset_schema.json
View on GitHub{
"_comment": "This JSON schema defines the expected structure for a dataset to be split.",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Dataset Schema",
"description": "Schema for validating dataset structure before splitting.",
"type": "object",
"properties": {
"dataset_name": {
"type": "string",
"description": "Name of the dataset",
"example": "iris_dataset"
},
"file_path": {
"type": "string",
"description": "Path to the dataset file (e.g., CSV, JSON)",
"example": "data/iris.csv"
},
"file_type": {
"type": "string",
"description": "Type of the dataset file",
"enum": ["csv", "json", "parquet"],
"example": "csv"
},
"separator": {
"type": "string",
"description": "Separator character for CSV files (e.g., ',', ';')",
"default": ",",
"example": ","
},
"target_column": {
"type": "string",
"description": "Name of the target/label column",
"example": "species"
},
"features": {
"type": "array",
"description": "List of feature column names",
"items": {
"type": "string"
},
"example": ["sepal_length", "sepal_width", "petal_length", "petal_width"]
},
"split_ratios": {
"type": "object",
"description": "Ratios for splitting the dataset into training, validation, and testing sets.",
"properties": {
"train": {
"type": "number",
"description": "Ratio for the training set (e.g., 0.7 for 70%)",
"minimum": 0,
"maximum": 1,
"example": 0.7
},
"validation": {
"type": "number",
"description": "Ratio for the validation set (e.g., 0.15 for 15%)",
"minimum": 0,
"maximum": 1,
"example": 0.15
},
"test": {
"type": "number",
"description": "Ratio for the testing set (e.g., 0.15 for 15%)",
"minimum": 0,
"maximum": 1,
"example": 0.15
}
},
"required": ["train", "validation", "test"]
},
"random_state": {
"type": "integer",
"description": "Random seed for reproducibility",
"default": 42,
"example": 42
},
"stratify": {
"type": "boolean",
"description": "Whether to stratify the split based on the target column",
"default": true,
"example": true
},
"output_directory": {
"type": "string",
"description": "Directory to save the split datasets",
"default": "split_data",
"example": "split_data"
},
"file_name_prefix": {
"type": "string",
"description": "Prefix for the output file names",
"default": "split",
"example": "split"
}
},
"required": ["dataset_name", "file_path", "file_type", "target_column", "features", "split_ratios"]
}Related 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 |