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ファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 5個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    AI-ModConがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Uq Metrics Evaluator」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/AI-ModCon/genesis-skills/tree/main/skills/basesafe-skills/uq-metrics-evaluator
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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で使用

TypingMindのチャットでUq Metrics Evaluatorを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にUq Metrics Evaluatorを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Uq Metrics Evaluatorは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じ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

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでUq Metrics Evaluatorを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Uq Metrics Evaluatorはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにUq Metrics Evaluatorをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/AI-ModCon/genesis-skills/tree/main/skills/basesafe-skills/uq-metrics-evaluatorを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Uq Metrics Evaluatorを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Uq Metrics Evaluatorで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもUq Metrics Evaluatorを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Uq Metrics Evaluator」は無料ですか?

はい。AI-ModConがBSD-2-ClauseライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇