$npx skillfedfor your agent

Classification Modeling

Classification Modeling trains predictive models to assign observations into discrete categories or classes. It covers binary outcomes, multi-category problems, and multiple classification approaches including logistic regression, decision trees, random forests, and gradient boosting.

Classification Modeling builds predictive models that assign observations to discrete categories using supervised learning algorithms.

AI-generated summary based on this skill's SKILL.md

299 45 MITupdated by aj-geddes

Decision gist · record as of 2026-03-04

Classification Modeling builds predictive models that assign observations to discrete categories using supervised learning algorithms. Classification Modeling trains predictive models to assign observations into discrete categories or classes. It covers binary outcomes, multi-category problems, and multiple classification approaches including logistic regression, decision trees, random forests, and gradient boosting.

manual: git clone https://github.com/aj-geddes/useful-ai-prompts → cp -r useful-ai-prompts/skills/classification-modeling ~/.claude/skills/classification-modeling
skills/classification-modeling/SKILL.md · version 1106ae20

Use it when

  • Classification Modeling covers both approaches: logistic regression is a linear model best for binary classification and interpretability.
  • Classification Modeling addresses class imbalance through multiple techniques: resampling (oversampling minority class or undersampling.

Verify before relying

Read SKILL.md below before installing (3 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

aj-geddes/useful-ai-prompts/classification-modeling · repository language: Shell

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I build a classification model?

Classification Modeling guides you through constructing predictive models that assign observations to discrete categories. Start by preparing labeled training data, select an algorithm (logistic regression, decision trees, random forests, or gradient boosting), fit the model to your data using a framework like scikit-learn, and evaluate performance using metrics like accuracy, precision, recall, and F1 score. The process involves data preprocessing, feature selection, model training, and validation.

What's the difference between logistic regression vs decision tree?

Classification Modeling covers both approaches: logistic regression is a linear model best for binary classification and interpretability, producing probability estimates directly. Decision trees partition data hierarchically and handle non-linear relationships well, working naturally for both binary and multiclass problems. Logistic regression trains faster and requires less data; decision trees capture complex patterns but risk overfitting. Choose based on your data's linearity, interpretability needs, and dataset size.

How does Classification Modeling handle class imbalance?

Classification Modeling addresses class imbalance through multiple techniques: resampling (oversampling minority class or undersampling majority class), using class weights to penalize misclassification of rare classes, and threshold tuning to adjust decision boundaries. For imbalanced datasets, evaluation metrics matter too—use precision, recall, F1 score, and ROC-AUC instead of accuracy alone. Stratified cross-validation ensures each fold maintains class proportions.

How do I interpret feature importance in classification?

Classification Modeling helps extract feature importance to understand which variables drive predictions. Tree-based models (random forests, gradient boosting) provide built-in importance scores showing how much each feature contributes to splits. Logistic regression coefficients indicate direction and magnitude of impact. Permutation importance and SHAP values offer model-agnostic approaches. Higher importance means the feature strongly influences category predictions; use this to validate domain knowledge and simplify models.

What are precision, recall, and F1 score in classification?

Classification Modeling uses these key metrics: precision measures correct positive predictions out of all positive predictions (minimizes false alarms), recall captures correct positives out of all actual positives (minimizes missed cases), and F1 score balances both as their harmonic mean. Choose precision when false positives are costly (spam detection), recall when false negatives matter more (disease diagnosis), and F1 when both errors are equally important. ROC-AUC and confusion matrices provide additional evaluation perspectives.

Can Classification Modeling predict multiple categories?

Classification Modeling handles multiclass problems where observations belong to three or more categories. Algorithms like logistic regression (one-vs-rest), decision trees, random forests, and gradient boosting naturally extend to multiclass settings. Training involves the same workflow as binary classification but uses multiclass-specific metrics: macro/weighted precision, recall, F1, and confusion matrices showing misclassification patterns across all classes. Probability calibration ensures confidence scores sum to 1 across categories.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

Classification Modeling

Overview

Classification modeling predicts categorical target values, assigning observations to discrete classes or categories based on input features.

When to Use

  • Predicting binary outcomes like customer churn, loan default, or email spam
  • Classifying items into multiple categories such as product types or sentiment
  • Building credit scoring models or risk assessment systems
  • Identifying disease diagnosis or medical condition from patient data
  • Predicting customer purchase likelihood or response to marketing
  • Detecting fraud, anomalies, or quality defects in production systems

Classification Types

  • Binary Classification: Two classes (yes/no, success/failure)
  • Multiclass: More than two classes
  • Multi-label: Multiple classes per observation

Common Algorithms

  • Logistic Regression: Linear classification
  • Decision Trees: Rule-based non-linear
  • Random Forest: Ensemble of decision trees
  • **Gradient

(truncated - see the full file via the links below)

File tree — 3 files
skills/classification-modeling/SKILL.md
skills/classification-modeling/scripts/scaffold-analysis.sh
skills/classification-modeling/templates/notebook-template.py

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Build and train classification models for categorical prediction”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

ML Model Training
by aj-geddes · aj-geddes/useful-ai-prompts

ML Model Training guides you through building and optimizing machine learning models across three major frameworks. Learn data preparation, feature engineering, algorithm selection, and hyperparameter tuning with practical examples for classification, regression, and clustering.

MITupdated Mar 2026
★ 299repo stars
Regression Modeling
by aj-geddes · aj-geddes/useful-ai-prompts

Regression Modeling trains predictive models to forecast continuous outcomes and quantify relationships between variables. It supports linear, polynomial, ridge, lasso, and robust regression approaches with comprehensive evaluation metrics and cross-validation.

MITupdated Mar 2026
★ 299repo stars
scikit-learn-ml
by beita6969 · beita6969/ScienceClaw

scikit-learn-ml provides a foundation for supervised learning tasks including classification, regression, clustering, and dimensionality reduction. It covers data preparation, model training with multiple algorithms, hyperparameter tuning via grid search, and evaluation metrics. Best suited for in-memory datasets; not for deep learning, time series, or distributed big data workloads.

MITupdated Jun 2026
★ 869repo stars
Machine Learning
by pluginagentmarketplace · pluginagentmarketplace/custom-plugin-data-engineer

Learn to build and deploy machine learning models using scikit-learn and XGBoost. This skill covers supervised and unsupervised learning, feature engineering, cross-validation strategies, hyperparameter tuning, and production-ready patterns for classification and regression tasks.

no license declared → metadata onlyupdated Jan 2026
★ 4repo stars
Model Hyperparameter Tuning
by aj-geddes · aj-geddes/useful-ai-prompts

This skill teaches systematic approaches to finding optimal model configurations across different algorithms. Learn grid search, random search, Bayesian optimization, and automated frameworks like Optuna to maximize validation performance and improve generalization.

MITupdated Mar 2026
★ 299repo stars
ml-expert
by personamanagmentlayer · personamanagmentlayer/pcl

ml-expert delivers comprehensive guidance on machine learning systems, from supervised and unsupervised learning through deep neural networks to production deployment. It covers model training workflows, hyperparameter optimization, and MLOps practices including versioning and monitoring. Includes practical code patterns for scikit-learn pipelines, PyTorch training loops, and FastAPI model serving.

Apache-2.0updated Mar 2026
★ 38repo stars

More skills ML Model Explanation (MIT) · ML Pipeline Automation (MIT) · Sentiment Analysis (MIT) · Computer Vision (MIT) · Neural Network Design (MIT) · Scikit Survival Analysis (NOASSERTION)

Tags
supervised-learningcategorical-predictionmodel-evaluationensemble-methodsimbalanced-dataprobabilistic-modelingfeature-selectionhyperparameter-tuning