计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
sampling-algorithms【效率与协作】Router for imbalanced-learn over-sampling, under-sampling, combine samplers, and custom resampling primitives.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about choosing, configuring, or debugging an imbalanced-learn sampler.
This sub-skill owns the package families that directly change class counts or sample composition:
RandomOverSampler, ADASYN, SMOTE, SMOTENC, SMOTEN,
BorderlineSMOTE, KMeansSMOTE, SVMSMOTERandomUnderSampler, TomekLinks, EditedNearestNeighbours,
RepeatedEditedNearestNeighbours, AllKNN, OneSidedSelection,
CondensedNearestNeighbour, NeighbourhoodCleaningRule, NearMiss,
ClusterCentroids, InstanceHardnessThresholdSMOTEENN, SMOTETomekFunctionSamplersampling_strategyfit_resamplerandom_state, replacement, shrinkagek_neighbors, m_neighbors, n_neighborsSMOTE, ADASYN, NearMiss, TomekLinks, SMOTEENNFunctionSamplerreferences/workflows.md for the decision tree from task shape to sampler
family.references/api-reference.md for the compact public sampler catalog and key
signatures.references/troubleshooting.md when neighbor counts, dtype errors, sparse
output, or categorical feature handling fail.RandomOverSampler when the request is about a simple, duplicate-based
bootstrap.SMOTE or one of its variants when the request needs synthetic minority
samples.SMOTENC for mixed numeric/categorical features.SMOTEN when all features are categorical.RandomUnderSampler when the request needs a fast majority reduction.TomekLinks, EditedNearestNeighbours, RepeatedEditedNearestNeighbours,
AllKNN, or NeighbourhoodCleaningRule when the request is about cleaning
noisy or borderline observations.ClusterCentroids when the task wants prototype generation rather than
simply selecting existing samples.SMOTEENN or SMOTETomek when the task wants a packaged over/under
combination.FunctionSampler when the user already knows the exact custom logic and
only needs a thin sampler wrapper.These repo tests are the most relevant later verification anchors for this sub-skill:
imblearn/over_sampling/tests/test_random_over_sampler.py::test_ros_fit_resampleimblearn/over_sampling/_smote/tests/test_smote.py::test_sample_regularimblearn/over_sampling/_smote/tests/test_smote_nc.py::test_smotenc_pandasimblearn/under_sampling/_prototype_selection/tests/test_random_under_sampler.py::test_rus_fit_resampleimblearn/under_sampling/_prototype_selection/tests/test_tomek_links.py::test_tl_fit_resampleimblearn/combine/tests/test_smote_enn.py::test_sample_regularimblearn/tests/test_base.py::test_function_sampler_funcSMOTE-family methods need a sensible neighbor configuration and enough
minority samples.SMOTENC needs a categorical feature specification that matches the input
layout.SMOTEN is for categorical-only data, not mixed numeric/categorical data.RandomOverSampler(shrinkage=...) is numeric-data only.ClusterCentroids may densify or become inefficient on sparse data.FunctionSampler should remain small and explicit; it is not a replacement
for a full pipeline.scripts/sampler_smoke.py for a tiny representative resampling smoke.scripts/sampling_strategy_demo.py for small examples of dict and callable
sampling strategies.