界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

estimators

estimators

【效率与协作】Route feature-importance and learning-curve requests to scikitplot.estimators.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: estimators description: "Route feature-importance and learning-curve requests to scikitplot.estimators." disable-model-invocation: true metadata: disco-role: operating license: MIT

Estimators

Use this sub-skill for the estimator-oriented plots in scikitplot.estimators: feature importances and learning curves.

Route here

  • Plot feature importances from a fitted estimator that exposes feature_importances_.
  • Plot learning curves from an estimator plus X, y, CV choices, and scoring settings.
  • Reuse or compose Matplotlib axes with ax=; both functions return the axes they drew on.
  • Validate the route quickly with scripts/estimators_smoke.py.

Reroute

  • Confusion matrix, ROC, precision-recall, KS, calibration, cumulative gain, lift, or silhouette: ../metrics/SKILL.md.
  • Elbow-curve workflows or clusterer-specific routing: ../clustering/SKILL.md.
  • Bound-method wrappers from the legacy factory layer, including injected estimator methods: ../legacy-factories/SKILL.md.
  • PCA or other dimensionality-reduction plots: not handled here.

Start fast

  1. Confirm the estimator contract.
    • plot_feature_importances requires feature_importances_.
    • plot_learning_curve passes an estimator through sklearn.model_selection.learning_curve.
  2. Pick the right options.
    • order accepts only ascending, descending, or None.
    • cv, shuffle, random_state, train_sizes, n_jobs, and scoring are forwarded to learning_curve.
  3. Reuse axes explicitly when composing figures.
  4. Run the smoke script for a tiny deterministic check:
python scripts/estimators_smoke.py

References

  • references/api-reference.md
  • references/workflows.md
  • references/troubleshooting.md
  • scripts/estimators_smoke.py
我的收藏