Логотип Uq Metrics Evaluator

Uq Metrics Evaluator

Организация
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.

Обзор

ИздательAI-ModCon
Репозиторийgenesis-skills
Название навыкаuq-metrics-evaluator
Звёзды
37
Форки
16
Файлы в комплекте
5
ЛицензияBSD-2-Clause
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 5

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — AI-ModCon. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Uq Metrics Evaluator в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/AI-ModCon/genesis-skills/tree/main/skills/basesafe-skills/uq-metrics-evaluator
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

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
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Uq Metrics Evaluator в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Uq Metrics Evaluator, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Uq Metrics Evaluator не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

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

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ 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.

Зачем использовать Uq Metrics Evaluator в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Uq Metrics Evaluator — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Uq Metrics Evaluator в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/AI-ModCon/genesis-skills/tree/main/skills/basesafe-skills/uq-metrics-evaluator. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Uq Metrics Evaluator?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Uq Metrics Evaluator?

С любым количеством. В TypingMind вы можете использовать Uq Metrics Evaluator с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Uq Metrics Evaluator?

Да. Навык опубликован на GitHub по лицензии BSD-2-Clause. Издатель — AI-ModCon. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇