home / skills / dkyazzentwatwa / chatgpt-skills / classification-helper
This skill helps you train and evaluate classification models with automatic model selection, hyperparameter tuning, and comprehensive metrics.
npx playbooks add skill dkyazzentwatwa/chatgpt-skills --skill classification-helperReview the files below or copy the command above to add this skill to your agents.
---
name: classification-helper
description: Quick classifier training with automatic model selection, hyperparameter tuning, and comprehensive evaluation metrics.
---
# Classification Helper
Train and evaluate classification models with automatic model selection.
## Features
- **Auto Model Selection**: Compare multiple classifiers
- **Hyperparameter Tuning**: Grid/random search
- **Evaluation Metrics**: Accuracy, precision, recall, F1, ROC-AUC
- **Cross-Validation**: K-fold validation
- **Confusion Matrix**: Detailed error analysis
- **Feature Importance**: Top predictive features
- **Model Export**: Save trained models
## CLI Usage
```bash
python classification_helper.py --data train.csv --target class --test test.csv --output model.pkl
```
## Dependencies
- scikit-learn>=1.3.0
- pandas>=2.0.0
- numpy>=1.24.0
- matplotlib>=3.7.0
- seaborn>=0.12.0
This skill provides a streamlined workflow to train, tune, and evaluate classification models with minimal setup. It automatically compares multiple candidate algorithms, runs hyperparameter searches, and produces comprehensive evaluation reports. The tool also supports k-fold cross-validation, confusion matrices, feature importance summaries, and model export for deployment.
You supply a labeled dataset and target column; the skill runs predefined candidate classifiers and ranks them by performance. It performs grid or random hyperparameter tuning and k-fold cross-validation to reduce overfitting. The output includes accuracy, precision, recall, F1, ROC-AUC, a confusion matrix, top predictive features, and a serialized model file for reuse.
What input formats are supported?
Use CSV files or pandas DataFrames; specify the target column and optional test split files.
Can I add custom classifiers or preprocessors?
Yes. Plug in additional scikit-learn compatible estimators or preprocessing steps into the workflow before running selection.
How does it handle imbalanced classes?
Use stratified k-fold validation and class-weighted estimators or sampling techniques. The tool reports per-class metrics to help evaluate imbalance.