executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
model-workflowsRouter for imbalanced-learn pipelines, leakage-safe resampling, balanced ensembles, and instance-hardness cross-validation.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the request is about building a model workflow around imbalanced-learn samplers.
This sub-skill owns the package surfaces that combine resampling with model training and validation:
Pipeline and make_pipelineBalancedBaggingClassifierBalancedRandomForestClassifierEasyEnsembleClassifierRUSBoostClassifierInstanceHardnessCVfit, predict, and optionally
predict_proba if the workflow uses InstanceHardnessCV.fit_transform.fit_resample inside PipelineBalancedBaggingClassifier, BalancedRandomForestClassifierEasyEnsembleClassifier, RUSBoostClassifierInstanceHardnessCVtransform_input, memory, sample_weightreferences/workflows.md for safe pipeline patterns and decision points.references/api-reference.md for the compact workflow API catalog.references/troubleshooting.md when cross-validation, metadata routing, or
estimator compatibility fails.Pipeline or make_pipeline when the main goal is to avoid leakage and
let resampling happen only during fit.BalancedBaggingClassifier when a bagging-style ensemble should resample
each bootstrap subset.BalancedRandomForestClassifier when the user wants a random-forest-like
ensemble with balanced bootstrap samples.EasyEnsembleClassifier when the task wants an AdaBoost-based ensemble on
balanced subsets.RUSBoostClassifier when the task wants boosting with under-sampling
between iterations.InstanceHardnessCV when the task is binary classification and the user
wants hard samples distributed across folds.These repo tests are the most relevant later verification anchors for this sub-skill:
imblearn/tests/test_pipeline.py::test_make_pipelineimblearn/tests/test_pipeline.py::test_pipeline_methods_pca_svmimblearn/ensemble/tests/test_bagging.py::test_balanced_bagging_classifierimblearn/ensemble/tests/test_forest.py::test_balanced_random_forestimblearn/ensemble/tests/test_easy_ensemble.py::test_easy_ensemble_classifierimblearn/ensemble/tests/test_weight_boosting.py::test_rusboostimblearn/model_selection/tests/test_split.py::test_default_paramsPipeline.fit_transform(X, y) can resample, while fit(X, y) followed by
transform(X) does not. Do not assume scikit-learn equivalence.InstanceHardnessCV only supports binary classification and needs an
estimator with predict_proba.sampler/sampling_strategy/replacement parameters
that change the internal balancing behavior; inspect the exact constructor.sample_weight support depends on the specific estimator.scripts/pipeline_leakage_check.py for a tiny leakage-safe pipeline smoke.scripts/ensemble_smoke.py for a representative balanced-ensemble check.scripts/model_selection_smoke.py for an InstanceHardnessCV sanity check.