Logo: Uq Metrics Evaluator

Uq Metrics Evaluator

Organisatioun
AI-ModCon
uq-metrics-evaluator

Use when the user asks for model evaluation, accuracy, calibration, or uncertainty quantification (UQ) analysis from CSV data. Handles both regression (MAE, RMSE, R², calibration) and classification (accuracy, F1, ROC-AUC, ECE, confusion matrix). Discovers the right CSV files and columns from prompt intent, then runs evaluation with artifact outputs.

Iwwersiicht

EditeurAI-ModCon
Repositorygenesis-skills
Skill-Nummuq-metrics-evaluator
Stären
37
Forks
16
Matgeliwwert Dateien
5
LizenzBSD-2-Clause
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 5 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    AI-ModCon huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Uq Metrics Evaluator an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/AI-ModCon/genesis-skills/tree/main/skills/basesafe-skills/uq-metrics-evaluator
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AI-ModCon/genesis-skills.git /tmp/genesis-skills
mkdir -p .claude/skills
cp -r /tmp/genesis-skills/skills/basesafe-skills/uq-metrics-evaluator .claude/skills/uq-metrics-evaluator
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Uq Metrics Evaluator an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Uq Metrics Evaluator automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Uq Metrics Evaluator net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Model Accuracy and Calibration Analysis

Arguments

The user provides a dataset or folder path and optional flags.

Expected format: <dataset_or_folder> [--task {regression|classification}] [--pred <file>] [--truth <file>]

What to specify:

  • Dataset or folder path to analyze
  • Task type (regression or classification) if not auto-detectable
  • Specific prediction/truth/probability column names or files if needed

Examples:

  • ./data — auto-discover files in directory
  • predictions.csv ground_truth.csv — explicit files
  • ./results --task classification — force classification mode

Overview

This skill performs end-to-end model evaluation from CSV files using two tools:

Core behavior:

  1. Determine task type (regression or classification) from the user's prompt and inspected column types.
  2. Discover and inspect candidate CSV files.
  3. Select relevant columns and run the appropriate evaluation tool.
  4. Return a concise analysis with artifact locations.

Environment Bootstrap

Use ephemeral uv run --with execution to avoid creating dependency files in the repository.

Schema inspection (both task types):

bash
uv run --with pandas --with pydantic \
    scripts/csv_reader_tool.py <file.csv>

Regression evaluation:

bash
uv run --with pandas --with pydantic --with numpy --with uncertainty-toolbox --with matplotlib --with seaborn \
    scripts/evaluate_metrics_tool.py <predictions.csv> <ground_truth.csv> \
    --pred-col <prediction_column> \
    --truth-col <truth_column> \
    [--uncertainty-col <uncertainty_column>]

Classification evaluation:

bash
uv run --with pandas --with pydantic --with numpy --with scikit-learn --with matplotlib --with seaborn \
    scripts/evaluate_classification_tool.py <predictions.csv> <ground_truth.csv> \
    --pred-col <predicted_class_column> \
    --truth-col <true_label_column> \
    [--prob-col <positive_class_prob_column>]        # binary only
    [--prob-cols <class0_prob> <class1_prob> ...]    # multiclass

Validation loop for execution:

  1. Run the command.
  2. If dependency or import errors appear, add missing packages via --with and rerun.
  3. Repeat until the command succeeds.

Task Type Routing

Determine task type before selecting columns:

SignalRoute to
Prompt mentions "regression", "RMSE", "MAE", "R²", "residuals", "continuous"Regression
Prompt mentions "classification", "F1", "accuracy", "confusion matrix", "AUC", "labels", "classes"Classification
Prediction column is continuous numeric (float, wide range)Regression
Prediction column is categorical or integer with few unique valuesClassification
Uncertainty column present with no class labelsRegression

When ambiguous, inspect the prediction column with csv_reader_tool and use dtype and cardinality to decide. Ask the user only if inspection is inconclusive.

Decision Logic

1. Resolve candidate CSV files

  1. Start from paths explicitly named by the user.
  2. If user gives a directory, list CSV files and rank by filename hints:
    • predictions-like: pred, prediction, inference, forecast, output
    • truth-like: truth, target, label, actual, ground
    • uncertainty/probability-like: uncert, sigma, std, prob, score
  3. If one file appears to contain both predictions and truth, use it for both inputs.

2. Inspect schemas before selecting columns

Run csv_reader_tool on each candidate file first. Prefer columns that are numeric, low missingness, and semantically matched to user language.

3. Map semantic roles to columns

Regression:

  • Prediction (--pred-col): y_pred, pred, prediction, mean, mu, forecast
  • Truth (--truth-col): y, y_true, truth, ground_truth, actual, target
  • Uncertainty (--uncertainty-col): sigma, std, stddev, uncertainty, pred_std

Classification:

  • Predicted class (--pred-col): y_pred, pred, prediction, class, label_pred
  • True label (--truth-col): y, y_true, label, ground_truth, actual, target
  • Binary probability (--prob-col): prob, score, prob_pos, p_pos, probability
  • Multiclass probabilities (--prob-cols): one column per class, ordered to match class order

Branching (classification):

  • If predicted class + truth found, run hard-label metrics (accuracy, F1, precision, recall, confusion matrix).
  • If a probability column is also found and the user asks for calibration or UQ, include ECE/MCE/Brier + reliability diagram.
  • If probability column missing, run hard-label metrics only and report calibration skipped.

Output Contract

Regression — return:

  1. Chosen files and columns (+ rationale).
  2. Accuracy metrics: mae, rmse, r2, corr, row_count.
  3. UQ calibration (when available): mean_calibration_error, rms_calibration_error, miscalibration_area, sharpness, nll.
  4. Artifacts: residuals CSV + residual distribution PNG; calibration CSV + calibration plot PNG.

Classification — return:

  1. Chosen files and columns (+ rationale).
  2. Hard-label metrics: accuracy, precision_macro, recall_macro, f1_macro, num_classes, row_count.
  3. Probability metrics (when available): roc_auc, log_loss.
  4. Calibration (when probability column present): expected_calibration_error, max_calibration_error, brier_score.
  5. Artifacts: confusion matrix CSV + heatmap PNG; reliability diagram PNG (if probabilities available).
  6. Any skipped steps or assumptions.

Quality Checks

Before finalizing analysis, verify:

  • Selected columns exist in the inspected schema.
  • Prediction/truth lengths are compatible.
  • Non-null rows remain after filtering.
  • For regression: prediction and truth columns are numeric.
  • For regression calibration: uncertainty values are strictly positive.
  • For classification: at least 2 unique classes are present in truth column.
  • For classification probabilities: probability columns are numeric and in [0, 1].

If checks fail, explain what failed, propose 2–3 alternative columns, and ask for clarification only when needed.

Procedure

  1. Parse the user-provided files, directory, column hints, and task type.
  2. Determine task type (regression vs. classification) from prompt and schema inspection.
  3. Discover and inspect candidate CSV files with csv_reader_tool.
  4. Select file pair and column mapping.
  5. Execute the appropriate evaluation tool.
  6. Summarize metrics and interpret model behavior.
  7. Report artifact paths for follow-on visualization or debugging.

Common Mistakes

MistakeFix
Running regression tool on class label columnsInspect cardinality; route to classification tool
Running classification tool on continuous outputsInspect dtype and range; route to regression tool
Using --prob-col for multiclassUse --prob-cols with one column per class
Requesting calibration without probability columnRun hard-label metrics only; report calibration skipped
Mixing row-misaligned filesUse same-row datasets or ask for join key workflow
Guessing columns without inspectionAlways run csv_reader_tool first

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Uq Metrics Evaluator?

Use when the user asks for model evaluation, accuracy, calibration, or uncertainty quantification (UQ) analysis from CSV data. Handles both regression (MAE, RMSE, R², calibration) and classification (accuracy, F1, ROC-AUC, ECE, confusion matrix). Discovers the right CSV files and columns from prompt intent, then runs evaluation with artifact outputs.

Firwat Uq Metrics Evaluator op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Uq Metrics Evaluator besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Uq Metrics Evaluator an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/AI-ModCon/genesis-skills/tree/main/skills/basesafe-skills/uq-metrics-evaluator an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Uq Metrics Evaluator benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Uq Metrics Evaluator benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Uq Metrics Evaluator domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Uq Metrics Evaluator gratis?

Jo. AI-ModCon huet de Skill ënner der Lizenz BSD-2-Clause op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇