feature-target-visualizers
Use Yellowbrick feature and target visualizers for feature ranking, projection diagnostics, class balance, target binning, and feature-target correlation.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- feature-target-visualizers
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use Yellowbrick feature and target visualizers for feature ranking, projection diagnostics, class balance, target binning, and feature-target correlation.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md8.6 KB
- 参考文档references/troubleshooting.md8.5 KB
- 参考文档references/workflows.md10.6 KB
- 脚本scripts/feature_target_smoke.py4.7 KB
03 SKILL.md 正文
Feature and Target Visualizers
Use this sub-skill when the task is to diagnose raw features, projected feature space, or the target variable before or alongside modeling with Yellowbrick. It covers Rank1D, Rank2D, RadialVisualizer, ParallelCoordinates, PCA, Manifold, JointPlot, ClassBalance, BalancedBinningReference, and FeatureCorrelation.
Route first
- For common
fit/transform/show, Matplotlib backend, style, axes, and headless saving patterns, read shared visualizer patterns. - For API signatures and imports, read API reference.
- For visualizer choice and task workflows, read workflows.
- For feature/target-specific failures, read troubleshooting; for package-wide install/display issues, also read root troubleshooting.
Use this sub-skill for
- Ranking or screening columns:
Rank1Dfor univariate distribution scoring;Rank2Dfor pairwise correlation/covariance-style structure. - Class-separability plots in raw feature space:
RadialVisualizer/RadVizandParallelCoordinates. - Dimensionality reduction plots:
PCAfor fast linear projections;Manifoldfor non-linear embeddings when the cost and algorithm limitations are acceptable. - Pairwise or feature-vs-target distribution plots:
JointPlot. - Target diagnostics:
ClassBalance,BalancedBinningReference, andFeatureCorrelation. - Headless smoke checks for feature/target visualizer usage with
scripts/feature_target_smoke.py.
Route elsewhere
- Route cross-validation, validation/learning curves, feature importance, RFECV, clustering elbow/silhouette/intercluster distance, and other model-selection curves to cluster-model-selection.
- Route text-specific feature visualizers and dataset downloader/cache questions to text-and-datasets.
- Route model-fitted classifier reports, confusion matrices, ROC/PR curves, prediction-error bars, and threshold tuning to classifier-visualizers. Stay here for
ClassBalance; cross-link to classifier visualizers when the user proceeds from target imbalance to model diagnostics.
Intake checklist
Before giving code or debugging advice, identify:
- Whether the task is about
Xfeatures,ytarget, or both. - Data shape: feature visualizers generally need
X.shape == (n_samples, n_features); target-only visualizers need a one-dimensionaly. - Feature names and class names: prefer explicit
features,labels, orclasseslists when arrays are used or when optional pandas support is unavailable. - Whether
yis classification-like or continuous; forcetarget_type="discrete"ortarget_type="continuous"for projection visualizers when automatic inference is ambiguous. - Runtime constraints: use PCA before manifold learning for quick checks; sample rows or features for expensive plots; set a non-interactive Matplotlib backend for headless execution.
- Output requirement: for files or CI reports, use the class API and
visualizer.show(outpath=..., clear_figure=True).
Minimal operating pattern
import matplotlib
matplotlib.use("Agg") # set before pyplot in headless jobs
import matplotlib.pyplot as plt
from yellowbrick.features import Rank2D
fig, ax = plt.subplots(figsize=(7, 6))
viz = Rank2D(ax=ax, features=feature_names, algorithm="pearson")
viz.fit(X, y)
viz.transform(X)
viz.show(outpath="rank2d.png", clear_figure=True)
plt.close(fig)
Use fit_transform(X, y) for PCA and for Manifold algorithms that do not support a separate transform() step. Use separate target visualizers outside sklearn prediction pipelines because they fit directly on y rather than on (X, y) estimator data.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).