技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
evaluation-and-data【数据与研究】Router for imbalanced-learn dataset fabrication, benchmark loading, imbalance-aware metrics, and categorical distance tools.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about preparing imbalanced datasets or measuring model quality on imbalanced classification problems.
This sub-skill owns the package surfaces that shape or evaluate data:
make_imbalancefetch_datasetsclassification_report_imbalancedgeometric_mean_scoresensitivity_specificity_supportsensitivity_scorespecificity_scoremake_index_balanced_accuracymacro_averaged_mean_absolute_errorValueDifferenceMetricIt also owns the common-pitfalls guidance around data leakage and evaluation order.
ValueDifferenceMetric.make_imbalance, fetch_datasetsclassification_report_imbalanced, geometric_mean_scoresensitivity_score, specificity_score, macro_averaged_mean_absolute_errorValueDifferenceMetriccommon_pitfalls, leakage, balanced accuracy, pandas outputreferences/workflows.md for dataset shaping and metric selection.references/api-reference.md for the compact dataset and metric catalog.references/troubleshooting.md when downloading, label encoding, or metric
selection fails.make_imbalance when the task starts from a balanced dataset and needs a
deliberate class-skew scenario.fetch_datasets when the task needs one of the curated benchmark
datasets and offline cache behavior is acceptable.classification_report_imbalanced when the user wants a human-readable
per-class summary.geometric_mean_score when class-wise balance matters more than overall
accuracy.sensitivity_* and specificity_* when the domain is medical or recall-
versus-specificity oriented.macro_averaged_mean_absolute_error for ordinal imbalance problems.ValueDifferenceMetric when the task is about categorical pairwise
distances.These repo tests are the most relevant later verification anchors for this sub-skill:
imblearn/datasets/tests/test_imbalance.py::test_make_imbalanced_irisimblearn/datasets/tests/test_zenodo.py::test_fetchimblearn/metrics/tests/test_classification.py::test_classification_report_imbalanced_multiclassimblearn/metrics/tests/test_classification.py::test_geometric_mean_multiclassimblearn/metrics/tests/test_classification.py::test_macro_averaged_mean_absolute_errorimblearn/metrics/tests/test_pairwise.py::test_value_difference_metricimblearn/tests/test_common.py::test_pandas_column_name_consistencyfetch_datasets is a network/cache helper, not a pure offline primitive.ValueDifferenceMetric expects categorical values to be encoded in a way the
metric can interpret.scripts/dataset_imbalance_demo.py for tiny make_imbalance and cached
dataset checks.scripts/metrics_report_demo.py for compact metric output on fixed labels.scripts/vdm_demo.py for categorical distance checks.