/ds:split-strategyfrom ds
Guides selection of train/validation/test split strategies based on data characteristics like time dependence, grouping, imbalance, and size.
Ships in ds. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Select the right train/validation/test split based on your data characteristics. Follow the decision tree below.
Yes -> Temporal split: Train on past, validate on recent, test on most recent. Never shuffle across time.
TimeSeriesSplit for cross-validationNo -> Continue to next question.
Examples: multiple rows per customer, multiple images per patient, repeated measurements.
Yes -> Group-aware split: Keep all observations of a group in the same fold.
GroupKFold or GroupShuffleSplitNo -> Continue.
Minority class <10% of total.
Yes -> Stratified split: Preserve class ratios across folds.
StratifiedKFold or StratifiedShuffleSplitStratifiedGroupKFoldNo -> Simple random split: Standard train_test_split with fixed seed.
Less than 5,000 rows.
Yes -> Cross-validation: Use 5-fold or 10-fold CV instead of a single holdout. Report mean and std of metrics.
No -> Single holdout is fine (70/15/15 or 80/10/10).
| Dataset Size | Recommended Split | Notes |
|---|---|---|
| <1,000 | Leave-one-out or 10-fold CV | Every data point matters |
| 1,000-10,000 | 5-fold CV or 80/10/10 | CV preferred for reliable estimates |
| 10,000-100,000 | 80/10/10 | Single holdout usually sufficient |
| >100,000 | 90/5/5 or 95/2.5/2.5 | Large test sets are unnecessary |
random_statefrom sklearn.model_selection import train_test_split, StratifiedKFold, GroupKFold, TimeSeriesSplit
# Simple stratified split
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, stratify=y, random_state=42
)
# Temporal split
tscv = TimeSeriesSplit(n_splits=5)
for train_idx, val_idx in tscv.split(X):
X_train, X_val = X.iloc[train_idx], X.iloc[val_idx]
# Group-aware split
gkf = GroupKFold(n_splits=5)
for train_idx, val_idx in gkf.split(X, y, groups=groups):
X_train, X_val = X.iloc[train_idx], X.iloc[val_idx]
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
19 skills in this plugin
/aeonAeon API patterns for time series machine learning -- classification, regression, clustering, anomaly detection, segmentation, and similarity search. Use when /ds:experiment needs time-series-specific ML algorithms (ROCKET, InceptionTime, DTW classifiers), or /ds:eda needs temporal feature extraction (Catch22, ROCKET features) or change point detection. For classical statistical forecasting (ARIMA/SARIMAX) use statsmodels; for tabular ML pipelines use scikit-learn; for visualization use matplotlib./data-preprocessingPre-model data preparation pipelines for cleaning, validation, transformation, and ETL orchestration. Use when raw data needs deduplication, schema validation, format conversion, or quality assurance before EDA or modeling./data-quality-frameworksGenerated from the plugin's indexed repository (andikarachman/data-science-plugin) — no native marketplace selected
npx claudepluginhub p/andikarachman-dsOther plugins' skills for the same job