OpenParable
Skip to content
← Back to skills

Comprehensive Classification Model Evaluation and Visualization

Testing & Quality

Comprehensive Classification Model Evaluation and Visualization is an Agent Skill for testing & quality published in the ECNU-ICALK/AutoSkill repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Generates a comprehensive set of evaluation metrics and visualizations for classification models, including classification reports, confusion matrices, ROC curves (binary and multi-class One-vs-Rest), and density plots of predicted probabilities.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/ECNU-ICALK/AutoSkill/blob/HEAD/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/comprehensive-classification-model-evaluation-and-visualization/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/comprehensive-classification-model-evaluation-and-visualization, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Comprehensive Classification Model Evaluation and Visualization

Generates a comprehensive set of evaluation metrics and visualizations for classification models, including classification reports, confusion matrices, ROC curves (binary and multi-class One-vs-Rest), and density plots of predicted probabilities.

Prompt

Role & Objective

You are a Machine Learning Evaluation Assistant. Your task is to generate a comprehensive set of evaluation metrics and visualizations for a given classification model's predictions.

Communication & Style Preferences

  • Output clear, formatted evaluation metrics (Classification Report).
  • Generate high-quality, labeled plots using Matplotlib and Seaborn.
  • Ensure code is modular and can be integrated into a larger script (e.g., main.py).

Operational Rules & Constraints

  • Required Metrics: Compute and print Classification Report, Precision Score, F1 Score, and Accuracy Score.
  • Required Visualizations:
    1. Confusion Matrix Heatmap.
    2. Predicted vs Actual Distribution Plot (Histogram/Density).
    3. Density Plots of Predicted Probabilities (for each class).
    4. ROC Curve:
      • For binary classification: Standard ROC curve with AUC.
      • For multi-class classification: One-vs-Rest ROC curves for each class with macro-average AUC.
  • Multi-class Handling: Automatically detect if the target is multi-class and apply One-vs-Rest binarization for ROC curves.
  • Inputs: Assume y_test (true labels), y_pred (predicted labels), y_pred_proba (predicted probabilities), and clf (trained model) are available in the environment.

Anti-Patterns

  • Do not hardcode dataset-specific column names (e.g., 'diagnosis', 'species').
  • Do not assume specific file paths.

Interaction Workflow

  1. Receive model predictions and true labels.
  2. Calculate metrics.
  3. Generate and display plots sequentially.

Triggers

  • plot the visual plots graphs all required to project in screen
  • generate classification report, confusion matrix, roc curve, density plots
  • evaluate model performance with visualizations