AGENT SKILL

nannyml

Use NannyML to monitor tabular ML models with performance estimation/calculation, drift detection, data-quality checks, chunking, thresholds, and CLI automation.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
nannyml
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use NannyML to monitor tabular ML models with performance estimation/calculation, drift detection, data-quality checks, chunking, thresholds, and CLI automation.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

NannyML

Use this repo skill when a task involves the nannyml Python package, the nml or nannyml CLI, post-deployment tabular model monitoring, silent model failure investigation, performance estimation without targets, realized performance monitoring, data drift detection, data-quality alerts, or NannyML YAML configuration.

NannyML is a CPU-oriented Python library for monitoring tabular classification and regression models. It supports confidence-based performance estimation (CBPE) for classification, direct loss estimation (DLE) for regression, realized performance calculation when targets arrive, univariate and multivariate drift detection, data-quality checks, summary statistics, and a configuration-driven CLI runner.

Quick install and smoke check

python -m pip install nannyml
python - <<'PY'
import nannyml as nml
print("nannyml", nml.__version__)
print(nml.CBPE)
print(nml.UnivariateDriftCalculator)
PY

NannyML depends on LightGBM. If installation or import fails around LightGBM system libraries, cloud filesystem dependencies, CLI rendering, or optional database output, read references/troubleshooting.md.

For a broader local sanity check after installation, run the bundled helper:

python scripts/check_install.py --check all

The helper verifies imports, API signatures, built-in dataset loaders, and CLI help without requiring network access, credentials, GPUs, or external services.

Route map

User task or symptom Read next
Estimate classification performance without analysis targets using CBPE sub-skills/performance-monitoring/SKILL.md
Estimate regression performance without analysis targets using DLE sub-skills/performance-monitoring/SKILL.md
Calculate realized performance once targets are available sub-skills/performance-monitoring/SKILL.md
Compare estimated and realized performance, or compare performance with drift/data-quality results references/results-and-plots.md and sub-skills/performance-monitoring/SKILL.md
Detect feature, output, or target drift sub-skills/drift-monitoring/SKILL.md
Choose univariate drift methods or multivariate PCA/domain-classifier drift sub-skills/drift-monitoring/references/methods.md
Rank drifted or unhealthy columns by alert count or correlation with performance sub-skills/drift-monitoring/SKILL.md
Decide reference/analysis columns, chunking, thresholds, or built-in datasets sub-skills/data-setup/SKILL.md
Monitor missing values, unseen values, numerical ranges, or summary statistics sub-skills/data-setup/SKILL.md
Use nml run, write YAML config, schedule jobs, or persist calculators/results sub-skills/cli-and-automation/SKILL.md
Interpret Result.filter, to_df, plot, compare, writer outputs, or Plotly figures references/results-and-plots.md
Pick a bundled sample dataset for a quick example references/datasets.md
Check whether this skill is stale for a new checkout or package release references/repo-provenance.md

Common NannyML workflow shape

Most API workflows follow this pattern:

import nannyml as nml

reference_df, analysis_df, analysis_targets_df = nml.load_synthetic_car_loan_dataset()

calculator_or_estimator = ...  # choose from the route map
calculator_or_estimator = calculator_or_estimator.fit(reference_df)
result = calculator_or_estimator.calculate(analysis_df)  # calculators
# or: result = calculator_or_estimator.estimate(analysis_df)  # estimators

result_df = result.filter(period='analysis').to_df(multilevel=False)
figure = result.filter(period='analysis').plot()

Use the reference period to establish the baseline and the analysis period to monitor future or production-like records. Targets are required in reference data for performance estimation and in analysis data only when calculating realized performance or target drift.

Key public entry points

  • nml.CBPE: classification performance estimation without analysis targets.
  • nml.DLE: regression performance estimation without analysis targets.
  • nml.PerformanceCalculator: realized performance calculation with targets.
  • nml.UnivariateDriftCalculator: feature, output, or target univariate drift.
  • nml.DataReconstructionDriftCalculator: multivariate PCA reconstruction-error drift.
  • nml.DomainClassifierCalculator: multivariate domain-classifier AUROC drift.
  • nml.MissingValuesCalculator, nml.UnseenValuesCalculator, nml.NumericalRangeCalculator: data-quality monitors.
  • nml.SummaryStatsAvgCalculator, SummaryStatsMedianCalculator, SummaryStatsRowCountCalculator, SummaryStatsStdCalculator, SummaryStatsSumCalculator: summary-statistic monitors.
  • nml.ConstantThreshold, nml.StandardDeviationThreshold: custom alert thresholds.
  • nml.SizeBasedChunker, nml.CountBasedChunker, nml.PeriodBasedChunker, nml.DefaultChunker: chunking control.
  • nml.AlertCountRanker, nml.CorrelationRanker: ranking and prioritization.
  • nml.RawFilesWriter, nml.PickleFileWriter, nml.DatabaseWriter: output writers; DatabaseWriter requires the optional nannyml[db] extra.
  • nml / nannyml CLI: configuration-driven monitoring runs.

Boundaries and non-goals

  • This skill is for using NannyML as a monitoring package, not for training the user's original predictive model.
  • NannyML workflows are tabular and model-agnostic. Route image, text, LLM, time-series forecasting, and deep-learning training tasks to a package-specific skill for that stack unless the task is explicitly about monitoring tabular model outputs with NannyML.
  • Database output is optional. Treat SQLAlchemy-compatible exports as requiring pip install 'nannyml[db]' and valid database credentials/connection strings.
  • The generated skill is self-contained. Do not require future users to open NannyML's original source checkout or run source-repo tests/examples as part of ordinary runtime use.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351