Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds a leakage-safe tabular classification pipeline end to end: a clean train/test split, preprocessing inside a Pipeline/ColumnTransformer, baseline vs. tuned models with cross-validated hyperparameter search, and honest metrics (accuracy, precision/recall/F1, ROC-AUC, confusion matrix) on a held-out set. Use whenever the user wants to "train a model", "predict a class/label", "build a classifier", or compare models on a labeled tabular dataset — even if they just say "can we predict X from t
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-16 | ✗→✓ | ▲ Improved | 30% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 36% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 45% | 0% |
| case-06 | ✓→✓ | = Same ✓ | 35% | 0% |
| case-07 | ✓→✓ | = Same ✓ | 50% | 0% |
A disciplined, reproducible tabular classification workflow that avoids the usual foot-guns (leakage, tuning on the test set, accuracy-only on imbalanced data).
Labeled tabular data + a categorical target the user wants to predict: binary or multiclass. Not for regression (continuous target), unstructured data (text/images), or pure data exploration (use eda-report first).
the class balance. Decide the primary metric up front based on the cost of errors (ROC-AUC / F1 / recall for imbalanced or asymmetric-cost problems; accuracy only when classes are balanced and errors are symmetric).
train_test_split with stratify=y and a fixed random_statebefore any fitting. The test set is touched exactly once, at the end.
ColumnTransformer:numeric → impute + scale; categorical → impute + one-hot (or ordinal where ordered). Everything fit on train folds only — this is what prevents leakage.
DummyClassifier for the floor). Record cross-validated scores. Every later model must beat this to justify its complexity.
booster (HistGradientBoosting / XGBoost / LightGBM if available). Compare via stratified k-fold CV on the training set using the primary metric.
GridSearchCV / RandomizedSearchCV (or Optuna for big spaces) withstratified CV, optimizing the primary metric. Handle imbalance via class_weight='balanced' or resampling inside CV folds — never resample the whole dataset before splitting.
test set, and report the full picture: accuracy, precision/recall/F1 (per class + macro), ROC-AUC (or PR-AUC for heavy imbalance), and the confusion matrix. State the operating threshold if it was tuned.
SHAP if the user wants per-prediction explanations). Note caveats and any drift between CV and test performance.
A runnable, reproducible script/notebook with fixed seeds, plus a short results summary: chosen metric and why, baseline-vs-tuned table, held-out test metrics, confusion matrix, top features, and honest limitations. Persist the fitted pipeline (joblib.dump) if the user wants to reuse it.
stratified, seed=42"), not as bare numbers.
Other measured skills in the registry, with their headline benchmark lift.