AGENT SKILL

yellowbrick

Use Yellowbrick visual diagnostics for scikit-learn models, feature/target analysis, clustering, model selection, text visualizers, datasets, styles, and contrib extensions.

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

01 前言 Front Matter

name
yellowbrick
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use Yellowbrick visual diagnostics for scikit-learn models, feature/target analysis, clustering, model selection, text visualizers, datasets, styles, and contrib extensions.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

Yellowbrick Repo Skill

Use this skill when a task asks how to use Yellowbrick, troubleshoot Yellowbrick visualizers, create saved diagnostic plots for scikit-learn workflows, load Yellowbrick example datasets, or adapt Yellowbrick-style visual checks in a headless agent environment.

Yellowbrick visualizers usually wrap scikit-learn estimators or transform data and render Matplotlib figures. Start from the shared lifecycle reference, then open the focused sub-skill for the task family.

Quick install and import check

For the repository snapshot covered by this skill, use a Python scientific stack with Matplotlib and scikit-learn. Yellowbrick 1.5 has no GPU requirement.

python -m pip install yellowbrick
python - <<'PY'
import yellowbrick
print(yellowbrick.__version__)
PY

If normal scikit-learn classifiers or regressors are rejected as the wrong estimator type, read references/troubleshooting.md; this snapshot works best with a pre-1.4 scikit-learn compatibility stack.

For headless agents and CI, set a non-interactive backend before importing pyplot or running bundled smoke scripts:

import matplotlib
matplotlib.use("Agg", force=True)

Shared workflow

  1. Choose a visualizer from the route map below.
  2. Prepare X, y, class labels, feature names, and any train/test split.
  3. Instantiate the visualizer, often with a scikit-learn estimator and ax or style arguments.
  4. Call the Yellowbrick lifecycle method: fit, transform/fit_transform, score, then show(outpath=...) for saved reports.
  5. Validate with a bundled smoke helper when adapting a workflow in a new environment.

Read references/visualizer-patterns.md for lifecycle, axes, style, pipeline, and headless rendering details. Read references/troubleshooting.md for install/import, optional dependency, dataset, Matplotlib, and estimator-type failures. Read references/testing-and-validation.md when creating a smoke check or comparing against native Yellowbrick tests.

Route map

  • Classification reports, confusion matrices, ROC/PR curves, threshold tuning, class prediction errors, and class balance: read sub-skills/classifier-visualizers/SKILL.md.
  • Regression residuals, prediction error, Cook's distance, and alpha selection: read sub-skills/regressor-visualizers/SKILL.md.
  • Feature ranking, RadViz, parallel coordinates, PCA, manifold projections, joint plots, target binning, class balance, and feature-target correlation: read sub-skills/feature-target-visualizers/SKILL.md.
  • Clustering diagnostics, k selection, silhouette/intercluster plots, validation/learning curves, CV scores, RFECV, feature importances, and dropping curves: read sub-skills/cluster-model-selection/SKILL.md.
  • Yellowbrick dataset loaders/cache controls and text visualizers such as frequency distribution, t-SNE, UMAP, dispersion, word correlation, and POS tags: read sub-skills/text-and-datasets/SKILL.md.
  • Experimental contrib visualizers, missing-value plots, decision boundaries, third-party estimator wrappers, pre-predicted outputs, and statsmodels adapters: read sub-skills/contrib-and-extensions/SKILL.md.

Bundled shared script

Run scripts/check_yellowbrick_visualizer.py --outdir <dir> to verify that the current environment can import Yellowbrick, use Matplotlib Agg, and create small classifier, regressor, and cluster diagnostic PNGs from synthetic data. This script is safe, deterministic, offline, and independent of the original repository checkout.

Provenance and freshness

Read references/repo-provenance.md before deciding whether this skill is current for another checkout. If the source commit, package version, public API, or dirty-state baseline differs, refresh the repo skill before relying on exact signatures or compatibility notes.

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