Evaluate Ml Pipelineのロゴ

Evaluate Ml Pipeline

組織
probabl-ai
evaluate-ml-pipeline

Evaluate one sklearn-compatible learner with the locked validation scheme and persist structured skore reports. The splitter and any non-default score are already on the DataOp from `build-ml-pipeline`. This skill writes the call without `splitter=`, persists the report, and records the locator. When the locked split is the training table and test table that shipped with the data, fit on the training table, then pass `splitter="prefit"` with only the test table. When `model-ml-pipeline` dispatched this turn, return the locator. A standalone turn owns the evaluate-stage close. TRIGGER when code calls `cross_val_score`, `cross_validate`, `classification_report`, `.skb.cross_validate`, or a handwritten metric print, or the user asks to score, evaluate, or run CV on one learner. Narrative reads of a persisted report belong to `audit-ml-pipeline`. HOW TO USE: before any evaluation call. Resolve G-SKORE-MODE, read the stops, and emit Pre-flight before code. Confirm symbols with `python -m skore_skills api get`.

Add to TypingMind

概要

公開者probabl-ai
リポジトリskore-skills
スキル名evaluate-ml-pipeline
スター
144
フォーク
9
同梱ファイル
8
ライセンスBSD-3-Clause
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

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

  • 8個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/probabl-ai/skore-skills.git /tmp/skore-skills
mkdir -p .claude/skills
cp -r /tmp/skore-skills/skills/evaluate-ml-pipeline .claude/skills/evaluate-ml-pipeline
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Evaluate ML Pipeline

Score one learner and persist the report. The pipeline, the splitter, and any non-default score are already declared. skore.evaluate is the entry point. Do not hand-roll cross_val_score, cross_validate, classification_report, or metric prints.

A SkrubLearner does not implement sklearn's fit(X, y). cross_val_score raises. Call skore.evaluate(learner, data={...}) and omit splitter=, unless translation.splitter is prefit.

Human-facing prose

Details: setup-workspace references/human_facing_prose.md. Experiment markdown and # comments describe this evaluation. Questions and the close use the same data-science language: not skill ids, G-* names, or the wrapper CLI. <!-- results-embed: … --> is a site marker.

Procedure

  1. python -m skore_skills status. If status.setup.pending is non-empty and status.skills.setup-ml-project is true, load setup-ml-project and stop. Do not start this skill. When it returns, continue. Do not load it again on this turn. If that skill is not installed, name the pending pieces in one line and stop. Do not invent git init, scaffold, or env init. If status.setup.env or status.setup.workspace is declined, stop in one line. A declined git or editable is not asked again; continue. Then python -m skore_skills frame show without --revise. If status.modeling_decisions is not locked, including draft, return to model-ml-pipeline and stop. Do not ask for consent or storage mode, and do not show a skore.evaluate call, even as a preview. Anything other than proceed loads frame-ml-problem and stops. translation null → stop. Do not write an evaluation call.
  2. History-dependent pipeline (backward shift, lag, rolling window, target shift, or a join with side history): if tests/smoke/test_<stem>.py is missing or pytest is red, stop and go back to build (§ Back to build). Do not write skore.evaluate. Documented n/a only when there is no history-dependent step.
  3. python -m skore_skills evaluate consent --stem <stem>.
    • ask, and this turn has not already answered Evaluate from build-ml-pipeline: quote JSON context and present Evaluate (Recommended) / Modify / Stop. Stop. "Run evaluation" is not consent on a first run.
    • The user already answered Evaluate this turn, or JSON is proceed (a real locator already exists): continue.
    • stop — smoke file missing. Back to build (§ Back to build).
  4. G-SKORE-MODE. Read status.policy.skore_mode. If it is already set, keep it. If unset, ask local (recommended) / hub / mlflow, then python -m skore_skills policy set skore_mode <mode>. local: mkdir reports (exist_ok); do not write reports/README.md. hub or mlflow: do not create reports/. Then load add-python-package if installed; it runs env add-skore --mode <mode> --execute. Do not spell skore[...] here. Do not run env add here. Constructors: references/g_skore_mode.md. A switch or a migration loads sync-ml-reports when that skill is installed.
  5. Emit Pre-flight, then 1–3 sentences: this is local full-dataset evaluation with the locked scheme, report metrics, the skore checks, and project.put. The checks are computed in this run and stored with the report. When translation.splitter is prefit, say the model is fitted on the training table and scored on the shipped test table. Name the stem, the fold count when known, and experiments/<stem>.py plus scratch/results/<stem>/. Timing depends on rows, folds, the learner, and the checks. Do not invent minutes. If consent is still pending, preview and stop.
  6. Write the call in experiments/NN_*.py only. See the call shapes below. python -m skore_skills style after the edit. The experiment ends at report.checks.summarize(), project.put, and a bare report. Do not execute this file.
  7. Copy templates/materialize.py to scratch/results/<stem>/materialize.py. Substitute the Project init. Replace the <CALL> block with the experiment call, same arguments and order. Run that file once with the composed-dev Python from env verify. It is the only skore.evaluate and the only project.put. Read id.txt, form the locator, and write locator.txt. When policy.notebooks is true, run python -m skore_skills notebook fill experiments/<stem>.py, adding --html only when policy.site is also true. Do not notebook convert the experiment, and do not run the experiment file. When notebooks is null or false, do not change policy and do not fill. When policy.site is true and export-ml-site is installed, run python -m skore_skills site build --if-stale after the locator and before audit/review or another user gate. This exposes the result viewers immediately. It does not replace the close-time build after record-outcome. Then End of turn. Do not add materialize writes to the experiment file.

Every Python probe goes to scratch/<ts>_<short>.py and runs with the composed-dev Python from env verify. No inline python -c. No warnings.filterwarnings unless the user asks. An unconfirmed signature stays unwritten. End that probe with BLOCKED: <class> signature needs an API lookup that cannot run this turn (<why>). A cache hit is a satisfied lookup.

The call

skore.evaluate in experiments/NN_*.py. Omit splitter= so skore reuses the DataOp cv and split_kwargs, unless translation.splitter is prefit. Passing any other splitter= drops split_kwargs. Omitted splitter= with no DataOp cv is an 80/20 holdout, correct only when translation.report is EstimatorReport and translation.splitter is null. Wiring: references/metadata-routing.md.

When translation.splitter is prefit, fit on the training table only, then score the test table. Confirm fit and evaluate with api get. Do not pass the training table into evaluate. Omitting splitter= here draws a new 80/20 split of the test table. Do not concatenate the two tables.

python
learner = build_learner()
fitted = learner.fit({"table": train_df})
report = skore.evaluate(
    fitted,
    data={"table": test_df},
    splitter="prefit",
)

An estimator whose fit is (X, y) uses the same rule:

python
fitted_model = LogisticRegression().fit(X_train, y_train)
report = skore.evaluate(
    fitted_model, X_test, y_test, splitter="prefit"
)

X / y and data stay mutually exclusive.

  • SkrubLearner — skore.evaluate(learner, data={...}). Keys are the skrub.var names. Interop: references/skrub_interop.md.
  • An estimator whose fit is (X, y) — skore.evaluate(estimator, X, y). Still omit splitter= when the locked cv is already the evaluation scheme. The prefit call above is the exception: the estimator is already fitted, and X and y are the test table.

The cv on mark_as_X is KFold, GroupKFold, or the date-based class from build. If translation names a cv and the marker has none, go back to build (§ Back to build). Do not wire split_kwargs here. Empty split_kwargs plus a possible group column → back to build. Do not default to KFold. translation.splitter prefit is not a cv on the marker.

No Stratified* for class imbalance. It compresses across-fold variance.

The headline is translation.metric. A name on the skore default list in build-ml-pipeline needs no scorer, except multioutput-regression: the default regression metrics are per output, and the locked aggregate must already be .skb.with_scoring(...). Any other name must already be .skb.with_scoring(...) on the prediction DataOp. If it is not, go back to build (§ Back to build) before skore.evaluate. Do not call report.metrics.add. When the scorer is attached, that name is a row in report.metrics.summarize().frame(). For multioutput-regression, that frame also has one row per output. Do not average those rows away in the experiment file. The close may quote the locked aggregate; the per-output rows stay in the stored report. skore.evaluate has no scoring= argument (references/custom-metrics.md). If the name is attached and still missing from that frame, the predictor class is wrong: it must be the mixin, then BaseEstimator (RegressorMixin or ClassifierMixin first). Go back to build (§ Back to build). BaseEstimator alone, and BaseEstimator before the mixin, both fail.

An extra check the user asks for after the lock: references/custom-checks.md. Subclass skore.Check at module level in experiments/NN_*.py, then report.checks.add(...) after evaluate and before summarize. add extends SKD checks. Do not invent a check. Do not register one from audit/. Confirm Check and checks.add with api get.

Every evaluation calls report.checks.summarize() with no arguments after evaluate and after any checks.add, then project.put. That stores the check results on the report. Do not pass fast_mode or ignore. Confirm checks.summarize with api get.

python
report = skore.evaluate(...)
report.checks.summarize()
project.put(STEM, report)
report

Escalate past evaluate only when the dispatcher is too coarse (references/reports.md): EstimatorReport for one held-out fit, CrossValidationReport for per-fold artifacts. Holdout uses EstimatorReport. This loop scores that one learner with one skore.evaluate, one report.checks.summarize(), and one project.put.

CV is necessary but not sufficient for any pipeline with history-dependent features. skore.evaluate materializes the graph once with one env-dict and splits indices. The smoke test exercises a fresh env-dict at predict time. A passing smoke test is still required before the caller may flip status to done. Do not edit JOURNAL.md History or the design-note Status to done from this skill.

The human experiment file contains skore.evaluate(...) and project.put(...) and is not executed. The same call is copied into scratch/results/<stem>/materialize.py, which is the only run, so project.put happens once. An audit file, a scratch probe, or notebook convert on the experiment must not call them. Read a stored report with project.summarize() then project.get(id). get(key) raises KeyError because get is by id. Do not re-run evaluate to paper over that.

Plots that skore does not already draw load plot-ml-figure when that skill is installed.

After put

Project.put returns None. materialize.py writes the newest id for the key to scratch/results/<stem>/id.txt. Form one locator from that id and write locator.txt next to it, before loop locator and loop artifacts. Do not put these writes in experiments/<stem>.py. Run python -m skore_skills loop locator --stem <stem> and paste JSON locator verbatim. Missing locator is n/a — backend did not expose a locator.

  • local — local workspace: [reports/](../reports/) · id: <id>, plus the absolute reports/ path. Do not link a private file.
  • hub — the exact Consult your report at … URL: [Open report](<url>) · hub · id: <id>. If Skore emits no URL, link the project landing page as Open project.
  • mlflow — an exact View run … URL when present. If absent and tracking_uri is HTTP(S), use /#/experiments/<experiment-id>/runs/<run-id>. For file:, sqlite:, databricks, or any other URI without an emitted URL: mlflow · tracking: <uri> · experiment: <id> · run: <run-id>. Do not invent a browser link.

The script writes report._repr_html_() to scratch/results/<stem>/report.html, repr(report) to report.txt, checks.html, and metrics.html. It regenerates the Method viewer from the in-memory learner: report.estimator_ on EstimatorReport, report.reports_[0].estimator_ on CrossValidationReport. A SkrubLearner wraps its DataOp in learner.data_op. From learner.data_op.skb the script writes pipeline.svg with draw_graph().svg and the DataOp report to scratch/results/<stem>/pipeline/ with report(eval=False, open=False, overwrite=True, output_dir=...). No environment. That does not fit. Do not call full_report, and do not call report without eval=False. If Graphviz still fails after one add-python-package retry for skrub, name the error in one line.

End of turn

When model-ml-pipeline dispatched this turn, pass JSON locator up and return after the live execution and checkpoint preview above. Do not run the close-time loop notebooks, loop artifacts, audit, record-outcome, another site build, or git end-turn.

Otherwise this skill owns the close. First run python -m skore_skills loop artifacts --stem <stem>. stop / evaluate_incomplete → name the missing file and do not audit. audit → load audit-ml-pipeline when installed. record → skip audit. record is that command's action, not the notebook gate. Do not convert in the audit skill.

Then this order. Do not reorder it. loop notebooks continues only on skip.

  1. python -m skore_skills loop notebooks --stem <stem>. Treat JSON action as authoritative. Do not record-outcome, site build, or git end-turn while action is convert. not_evaluated does not convert.
  2. On convert, run python -m skore_skills notebook fill <source> for every experiments/ or audit/ entry, with --html when html is true. Do not notebook convert those files. Fill does not put. Re-run materialize.py first only when that human call changed since the run that wrote the current artifacts. Filling only audit/<stem>.py is not the close. The unfitted-snapshot ban does not apply: fill the experiment script even though it contains skore.evaluate. Re-run step 1 until action is skip. Missing jupytext / nbformat / nbconvert → one line naming add-python-package.
  3. record-outcome, only once step 1 is skip, and before site build. If audit ran, pass its digest and G-AUDIT-FINDING into manage-ml-backlog when that skill is installed, with the locator from step 2 when the experiment script was converted. If audit did not run, call record-outcome with that locator, the user's headline, if any, and n/a — audit not run. Missing backlog skill → one line. Do not write History here. Never mark done while smoke is red.
  4. site build only when policy.site is true and export-ml-site is installed: python -m skore_skills site build --if-stale. It embeds audit/<stem>.nb.html under ## Notebooks; do not add <!-- results-embed: audit -->. If site build errors with mkdocs-material is required, load add-python-package for mkdocs-material (agent) and build once more. Do not pixi add / uv add. Name a build error; do not fail the turn.
  5. Checkpoint, below. When policy.site is true and the checkpoint build succeeded, say the website has been updated and paste the file:// line from that output verbatim. Do not name the design-note markdown. When the site was not built, do not claim it was updated and do not name the markdown.
  6. python -m skore_skills git end-turn --stage evaluate. If JSON action is invoke, load persist-ml-git when installed and stop. Otherwise load triage-ml-task when installed. Do not run git commit here.

Checkpoint

Standalone only. 2–6 sentences of the result, grounded in the headline or, when audit was skipped, report.txt. If audit ran, ground the story in its Checks and Metrics. Do not invent a metric.

Links: when policy.site is true and the build succeeded, say the website has been updated and paste the file:// line from that output verbatim. Do not name html/<stem>.html or journal/<stem>.md. When the site was not built, do not claim it was updated and do not name the markdown.

Tokens after the narrative: JSON locator first, then G-AUDIT-FINDING (n/a — audit not run when skipped).

Back to build

A missing cv, a missing scorer, a wrong predictor class, and a missing or red smoke test are pipeline fixes that belong to build-ml-pipeline. How to get there depends on who loaded this skill:

  • Dispatched — model-ml-pipeline or build-ml-pipeline loaded this skill this turn: stop and return to that loop, which goes back to build for the fix.
  • Entered directly — the user asked to evaluate, or the entry skill routed here: load model-ml-pipeline when status.skills.model-ml-pipeline is true, and name the stem. It resumes the approved design and re-enters build for the fix, on the model tier that build declares. Do not load build-ml-pipeline from here: a sub-step this skill loads runs on at most this skill's own tier. Missing model-ml-pipeline → say in one line that the pipeline needs a fix in build, and stop.

Either way, write no skore.evaluate this turn.

Stops

  • Pending setup (status.setup.pending non-empty) → load setup-ml-project. A declined git is not asked again. A declined env or workspace stops.
  • Smoke missing or red on a history-dependent pipeline → back to build (§ Back to build).
  • Empty split_kwargs plus a possible group column → back to build (§ Back to build). Do not default to KFold.
  • import skore fails → G-SKORE-MODE if unset, then add-python-package. Do not drop back to cross_val_score.
  • Hyperparameter search, serving, and multi-run tracking are out of scope.
  • A missing package loads add-python-package when installed. Do not run env add here.

Pre-flight — emit before any code

Pre-flight (evaluate-ml-pipeline):
- [ ] sklearn, skrub, skore import
- [ ] frame show is proceed; DataOp cv matches translation
      (or holdout / prefit, and the marker has no cv)
- [ ] skore_mode is set (local | hub | mlflow)
- [ ] evaluate consent is proceed, or the user answered Evaluate
- [ ] Call site is experiments/NN_*.py (not executed)
- [ ] The one run is scratch/results/<stem>/materialize.py
      (not cells in the experiment file)
- [ ] skore.evaluate omits splitter=
      (or splitter="prefit" and only the test table is passed)
- [ ] report.checks.summarize() then project.put
      (no fast_mode, no ignore; after any checks.add)
- [ ] Smoke: passing | n/a (no history-dependent step) | STOP

References

  • references/metadata-routing.md — the locked cv stays on the DataOp; evaluate omits splitter=.
  • references/skrub_interop.md — env-dict versus (X, y).
  • references/g_skore_mode.md — Project constructors.
  • references/reports.md — when evaluate is too coarse.
  • references/custom-metrics.md — a non-default metric via with_scoring.
  • references/custom-checks.md — a check the user asked for.
  • templates/materialize.py — the only evaluation run. Copy to scratch/results/<stem>/materialize.py.

同梱ファイル

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

よくある質問

AIスキル「Evaluate Ml Pipeline」では何ができますか?

Evaluate one sklearn-compatible learner with the locked validation scheme and persist structured skore reports. The splitter and any non-default score are already on the DataOp from `build-ml-pipeline`. This skill writes the call without `splitter=`, persists the report, and records the locator. When the locked split is the training table and test table that shipped with the data, fit on the training table, then pass `splitter="prefit"` with only the test table. When `model-ml-pipeline` dispatched this turn, return the locator. A standalone turn owns the evaluate-stage close. TRIGGER when c...

TypingMindでEvaluate Ml Pipelineを使うメリットは何ですか?

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

TypingMindにEvaluate Ml Pipelineをインストールするにはどうすればよいですか?

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

Evaluate Ml Pipelineを使えるAIモデルはどれですか?

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

Evaluate Ml Pipelineで使えるAIモデルの数に制限はありますか?

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

AIスキル「Evaluate Ml Pipeline」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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