SYMBOL INDEX (786 symbols across 104 files) FILE: conftest.py function pytest_runtest_setup (line 20) | def pytest_runtest_setup(item): FILE: doc/conf.py function generate_min_dependency_table (line 263) | def generate_min_dependency_table(app): function generate_min_dependency_substitutions (line 313) | def generate_min_dependency_substitutions(app): function setup (line 333) | def setup(app): FILE: doc/sphinxext/github_link.py function _get_git_revision (line 11) | def _get_git_revision(): function _linkcode_resolve (line 20) | def _linkcode_resolve(domain, info, package, url_fmt, revision): function make_linkcode_resolve (line 70) | def make_linkcode_resolve(package, url_fmt): FILE: doc/sphinxext/sphinx_issues.py function user_role (line 31) | def user_role(name, rawtext, text, lineno, inliner, options=None, conten... function cve_role (line 60) | def cve_role(name, rawtext, text, lineno, inliner, options=None, content... class IssueRole (line 77) | class IssueRole: method __init__ (line 80) | def __init__( method default_format_text (line 93) | def default_format_text(issue_no): method make_node (line 96) | def make_node(self, name, issue_no, config, options=None): method __call__ (line 133) | def __call__( function format_commit_text (line 177) | def format_commit_text(sha): function setup (line 195) | def setup(app): FILE: examples/api/plot_sampling_strategy_usage.py function ratio_multiplier (line 179) | def ratio_multiplier(y): FILE: examples/applications/plot_outlier_rejections.py function plot_scatter (line 31) | def plot_scatter(X, y, title): function outlier_rejection (line 90) | def outlier_rejection(X, y): FILE: examples/applications/porto_seguro_keras_under_sampling.py function convert_float64 (line 58) | def convert_float64(X): function make_model (line 105) | def make_model(n_features): function timeit (line 137) | def timeit(f): function fit_predict_imbalanced_model (line 160) | def fit_predict_imbalanced_model(X_train, y_train, X_test, y_test): function fit_predict_balanced_model (line 180) | def fit_predict_balanced_model(X_train, y_train, X_test, y_test): FILE: examples/combine/plot_comparison_combine.py function plot_resampling (line 59) | def plot_resampling(X, y, sampler, ax): function plot_decision_function (line 76) | def plot_decision_function(X, y, clf, ax): FILE: examples/datasets/plot_make_imbalance.py function ratio_func (line 60) | def ratio_func(y, multiplier, minority_class): FILE: examples/ensemble/plot_bagging_classifier.py function roughly_balanced_bagging (line 129) | def roughly_balanced_bagging(X, y, replace=False): FILE: examples/over-sampling/plot_comparison_over_sampling.py function create_dataset (line 31) | def create_dataset( function plot_resampling (line 58) | def plot_resampling(X, y, sampler, ax, title=None): function plot_decision_function (line 76) | def plot_decision_function(X, y, clf, ax, title=None): FILE: examples/under-sampling/plot_comparison_under_sampling.py function create_dataset (line 30) | def create_dataset( function plot_resampling (line 57) | def plot_resampling(X, y, sampler, ax, title=None): function plot_decision_function (line 75) | def plot_decision_function(X, y, clf, ax, title=None): FILE: examples/under-sampling/plot_illustration_nearmiss.py function make_plot_despine (line 26) | def make_plot_despine(ax): FILE: examples/under-sampling/plot_illustration_tomek_links.py function make_plot_despine (line 26) | def make_plot_despine(ax): FILE: imblearn/__init__.py class LazyLoader (line 73) | class LazyLoader(types.ModuleType): method __init__ (line 81) | def __init__(self, local_name, parent_module_globals, name, warning=No... method _load (line 88) | def _load(self): method __getattr__ (line 101) | def __getattr__(self, item): method __dir__ (line 105) | def __dir__(self): FILE: imblearn/base.py class SamplerMixin (line 36) | class SamplerMixin(metaclass=ABCMeta): method fit (line 46) | def fit(self, X, y, **params): method fit_resample (line 75) | def fit_resample(self, X, y, **params): method _fit_resample (line 117) | def _fit_resample(self, X, y, **params): class BaseSampler (line 145) | class BaseSampler(SamplerMixin, OneToOneFeatureMixin, BaseEstimator): method __init__ (line 152) | def __init__(self, sampling_strategy="auto"): method _check_X_y (line 155) | def _check_X_y(self, X, y, accept_sparse=None): method fit (line 162) | def fit(self, X, y, **params): method fit_resample (line 183) | def fit_resample(self, X, y, **params): method _more_tags (line 206) | def _more_tags(self): method __sklearn_tags__ (line 209) | def __sklearn_tags__(self): function _identity (line 229) | def _identity(X, y): function is_sampler (line 233) | def is_sampler(estimator): class FunctionSampler (line 255) | class FunctionSampler(BaseSampler): method __init__ (line 353) | def __init__(self, *, func=None, accept_sparse=True, kw_args=None, val... method fit (line 360) | def fit(self, X, y): method fit_resample (line 391) | def fit_resample(self, X, y): method _fit_resample (line 435) | def _fit_resample(self, X, y): FILE: imblearn/combine/_smote_enn.py class SMOTEENN (line 25) | class SMOTEENN(BaseSampler): method __init__ (line 120) | def __init__( method _validate_estimator (line 136) | def _validate_estimator(self): method _fit_resample (line 153) | def _fit_resample(self, X, y): FILE: imblearn/combine/_smote_tomek.py class SMOTETomek (line 26) | class SMOTETomek(BaseSampler): method __init__ (line 118) | def __init__( method _validate_estimator (line 134) | def _validate_estimator(self): method _fit_resample (line 150) | def _fit_resample(self, X, y): FILE: imblearn/combine/tests/test_smote_enn.py function test_sample_regular (line 42) | def test_sample_regular(): function test_sample_regular_pass_smote_enn (line 62) | def test_sample_regular_pass_smote_enn(): function test_sample_regular_half (line 86) | def test_sample_regular_half(): function test_validate_estimator_init (line 104) | def test_validate_estimator_init(): function test_validate_estimator_default (line 125) | def test_validate_estimator_default(): function test_parallelisation (line 144) | def test_parallelisation(): FILE: imblearn/combine/tests/test_smote_tomek.py function test_sample_regular (line 42) | def test_sample_regular(): function test_sample_regular_half (line 70) | def test_sample_regular_half(): function test_validate_estimator_init (line 96) | def test_validate_estimator_init(): function test_validate_estimator_default (line 126) | def test_validate_estimator_default(): function test_parallelisation (line 154) | def test_parallelisation(): FILE: imblearn/datasets/_imbalance.py function make_imbalance (line 27) | def make_imbalance( FILE: imblearn/datasets/_zenodo.py function fetch_datasets (line 111) | def fetch_datasets( FILE: imblearn/datasets/tests/test_imbalance.py function iris (line 16) | def iris(): function test_make_imbalance_error (line 27) | def test_make_imbalance_error(iris, sampling_strategy, err_msg): function test_make_imbalance_error_single_class (line 35) | def test_make_imbalance_error_single_class(iris): function test_make_imbalance_dict (line 49) | def test_make_imbalance_dict(iris, sampling_strategy, expected_counts): function test_make_imbalanced_iris (line 69) | def test_make_imbalanced_iris(as_frame, sampling_strategy, expected_coun... FILE: imblearn/datasets/tests/test_zenodo.py function fetch (line 45) | def fetch(*args, **kwargs): function test_fetch (line 50) | def test_fetch(): function test_fetch_filter (line 68) | def test_fetch_filter(): function test_fetch_error (line 96) | def test_fetch_error(filter_data, err_msg): FILE: imblearn/ensemble/_bagging.py class BalancedBaggingClassifier (line 29) | class BalancedBaggingClassifier(BaggingClassifier): method __init__ (line 239) | def __init__( method _validate_y (line 274) | def _validate_y(self, y): method _validate_estimator (line 292) | def _validate_estimator(self, default=DecisionTreeClassifier()): method fit (line 308) | def fit(self, X, y): method _fit (line 330) | def _fit(self, X, y, max_samples=None, max_depth=None, sample_weight=N... method base_estimator_ (line 346) | def base_estimator_(self): method _more_tags (line 353) | def _more_tags(self): method __sklearn_tags__ (line 364) | def __sklearn_tags__(self): FILE: imblearn/ensemble/_common.py function _estimator_has (line 13) | def _estimator_has(attr): FILE: imblearn/ensemble/_easy_ensemble.py class EasyEnsembleClassifier (line 34) | class EasyEnsembleClassifier(BaggingClassifier): method __init__ (line 184) | def __init__( method _validate_y (line 212) | def _validate_y(self, y): method _validate_estimator (line 227) | def _validate_estimator(self, default=None): method fit (line 244) | def fit(self, X, y): method _fit (line 266) | def _fit(self, X, y, max_samples=None, max_depth=None, sample_weight=N... method base_estimator_ (line 273) | def base_estimator_(self): method _get_estimator (line 280) | def _get_estimator(self): method _more_tags (line 288) | def _more_tags(self): method __sklearn_tags__ (line 291) | def __sklearn_tags__(self): FILE: imblearn/ensemble/_forest.py function _local_parallel_build_trees (line 44) | def _local_parallel_build_trees( class BalancedRandomForestClassifier (line 92) | class BalancedRandomForestClassifier(RandomForestClassifier): method __init__ (line 427) | def __init__( method _validate_estimator (line 479) | def _validate_estimator(self, default=DecisionTreeClassifier()): method _make_sampler_estimator (line 492) | def _make_sampler_estimator(self, random_state=None): method fit (line 508) | def fit(self, X, y, sample_weight=None): method _set_oob_score_and_attributes (line 722) | def _set_oob_score_and_attributes(self, X, y): method _compute_oob_predictions (line 742) | def _compute_oob_predictions(self, X, y): method _more_tags (line 815) | def _more_tags(self): method __sklearn_tags__ (line 818) | def __sklearn_tags__(self): FILE: imblearn/ensemble/_weight_boosting.py class RUSBoostClassifier (line 30) | class RUSBoostClassifier(AdaBoostClassifier): method __init__ (line 185) | def __init__( method fit (line 207) | def fit(self, X, y, sample_weight=None): method _validate_estimator (line 235) | def _validate_estimator(self): method _make_sampler_estimator (line 266) | def _make_sampler_estimator(self, append=True, random_state=None): method _boost_real (line 288) | def _boost_real(self, iboost, X, y, sample_weight, random_state): method _boost_discrete (line 349) | def _boost_discrete(self, iboost, X, y, sample_weight, random_state): method _boost (line 401) | def _boost(self, iboost, X, y, sample_weight, random_state): FILE: imblearn/ensemble/tests/test_bagging.py function test_balanced_bagging_classifier (line 57) | def test_balanced_bagging_classifier(estimator, params): function test_bootstrap_samples (line 77) | def test_bootstrap_samples(): function test_bootstrap_features (line 113) | def test_bootstrap_features(): function test_probability (line 146) | def test_probability(): function test_oob_score_classification (line 191) | def test_oob_score_classification(): function test_single_estimator (line 226) | def test_single_estimator(): function test_gridsearch (line 252) | def test_gridsearch(): function test_estimator (line 269) | def test_estimator(): function test_bagging_with_pipeline (line 298) | def test_bagging_with_pipeline(): function test_warm_start (line 312) | def test_warm_start(random_state=42): function test_warm_start_smaller_n_estimators (line 340) | def test_warm_start_smaller_n_estimators(): function test_warm_start_equal_n_estimators (line 350) | def test_warm_start_equal_n_estimators(): function test_warm_start_equivalence (line 368) | def test_warm_start_equivalence(): function test_warm_start_with_oob_score_fails (line 391) | def test_warm_start_with_oob_score_fails(): function test_oob_score_removed_on_warm_start (line 399) | def test_oob_score_removed_on_warm_start(): function test_oob_score_consistency (line 412) | def test_oob_score_consistency(): function test_estimators_samples (line 426) | def test_estimators_samples(): function test_max_samples_consistency (line 469) | def test_max_samples_consistency(): class CountDecisionTreeClassifier (line 484) | class CountDecisionTreeClassifier(DecisionTreeClassifier): method fit (line 488) | def fit(self, X, y, sample_weight=None): function test_balanced_bagging_classifier_samplers (line 507) | def test_balanced_bagging_classifier_samplers(sampler, n_samples_bootstr... function test_balanced_bagging_classifier_with_function_sampler (line 533) | def test_balanced_bagging_classifier_with_function_sampler(replace): FILE: imblearn/ensemble/tests/test_easy_ensemble.py function test_easy_ensemble_classifier (line 48) | def test_easy_ensemble_classifier(n_estimators, estimator): function test_estimator (line 75) | def test_estimator(): function test_bagging_with_pipeline (line 98) | def test_bagging_with_pipeline(): function test_warm_start (line 112) | def test_warm_start(random_state=42): function test_warm_start_smaller_n_estimators (line 140) | def test_warm_start_smaller_n_estimators(): function test_warm_start_equal_n_estimators (line 150) | def test_warm_start_equal_n_estimators(): function test_warm_start_equivalence (line 168) | def test_warm_start_equivalence(): function test_easy_ensemble_classifier_single_estimator (line 187) | def test_easy_ensemble_classifier_single_estimator(): function test_easy_ensemble_classifier_grid_search (line 205) | def test_easy_ensemble_classifier_grid_search(): FILE: imblearn/ensemble/tests/test_forest.py function imbalanced_dataset (line 13) | def imbalanced_dataset(): function test_balanced_random_forest_error_warning_warm_start (line 28) | def test_balanced_random_forest_error_warning_warm_start(imbalanced_data... function test_balanced_random_forest (line 45) | def test_balanced_random_forest(imbalanced_dataset): function test_balanced_random_forest_attributes (line 62) | def test_balanced_random_forest_attributes(imbalanced_dataset): function test_balanced_random_forest_sample_weight (line 91) | def test_balanced_random_forest_sample_weight(imbalanced_dataset): function test_balanced_random_forest_oob (line 106) | def test_balanced_random_forest_oob(imbalanced_dataset): function test_balanced_random_forest_grid_search (line 139) | def test_balanced_random_forest_grid_search(imbalanced_dataset): function test_little_tree_with_small_max_samples (line 147) | def test_little_tree_with_small_max_samples(): function test_balanced_random_forest_pruning (line 183) | def test_balanced_random_forest_pruning(imbalanced_dataset): function test_balanced_random_forest_oob_binomial (line 201) | def test_balanced_random_forest_oob_binomial(ratio): function test_missing_values_is_resilient (line 224) | def test_missing_values_is_resilient(): function test_missing_value_is_predictive (line 273) | def test_missing_value_is_predictive(): FILE: imblearn/ensemble/tests/test_weight_boosting.py function imbalanced_dataset (line 11) | def imbalanced_dataset(): function test_rusboost (line 26) | def test_rusboost(imbalanced_dataset): function test_rusboost_sample_weight (line 68) | def test_rusboost_sample_weight(imbalanced_dataset): function test_rusboost_algorithm (line 88) | def test_rusboost_algorithm(imbalanced_dataset, algorithm): FILE: imblearn/exceptions.py function raise_isinstance_error (line 10) | def raise_isinstance_error(variable_name, possible_type, variable): FILE: imblearn/keras/_generator.py function import_keras (line 10) | def import_keras(): class BalancedBatchGenerator (line 64) | class BalancedBatchGenerator(*ParentClass): # type: ignore method __init__ (line 144) | def __init__( method _sample (line 166) | def _sample(self): method __len__ (line 179) | def __len__(self): method __getitem__ (line 182) | def __getitem__(self, index): function balanced_batch_generator (line 206) | def balanced_batch_generator( FILE: imblearn/keras/tests/test_generator.py function data (line 22) | def data(): function _build_keras_model (line 32) | def _build_keras_model(n_classes, n_features): function test_balanced_batch_generator_class_no_return_indices (line 41) | def test_balanced_batch_generator_class_no_return_indices(data): function test_balanced_batch_generator_class (line 58) | def test_balanced_batch_generator_class(data, sampler, sample_weight): function test_balanced_batch_generator_class_sparse (line 73) | def test_balanced_batch_generator_class_sparse(data, keep_sparse): function test_balanced_batch_generator_function_no_return_indices (line 90) | def test_balanced_batch_generator_function_no_return_indices(data): function test_balanced_batch_generator_function (line 110) | def test_balanced_batch_generator_function(data, sampler, sample_weight): function test_balanced_batch_generator_function_sparse (line 130) | def test_balanced_batch_generator_function_sparse(data, keep_sparse): FILE: imblearn/metrics/_classification.py function sensitivity_specificity_support (line 48) | def sensitivity_specificity_support( function sensitivity_score (line 315) | def sensitivity_score( function specificity_score (line 431) | def specificity_score( function geometric_mean_score (line 550) | def geometric_mean_score( function make_index_balanced_accuracy (line 743) | def make_index_balanced_accuracy(*, alpha=0.1, squared=True): function classification_report_imbalanced (line 865) | def classification_report_imbalanced( function macro_averaged_mean_absolute_error (line 1080) | def macro_averaged_mean_absolute_error(y_true, y_pred, *, sample_weight=... FILE: imblearn/metrics/pairwise.py class ValueDifferenceMetric (line 19) | class ValueDifferenceMetric(BaseEstimator): method __init__ (line 128) | def __init__(self, *, n_categories="auto", k=1, r=2): method fit (line 134) | def fit(self, X, y): method pairwise (line 194) | def pairwise(self, X, Y=None): method _more_tags (line 234) | def _more_tags(self): method __sklearn_tags__ (line 239) | def __sklearn_tags__(self): FILE: imblearn/metrics/tests/test_classification.py function make_prediction (line 45) | def make_prediction(dataset=None, binary=False): function test_sensitivity_specificity_score_binary (line 93) | def test_sensitivity_specificity_score_binary(): function test_sensitivity_specificity_f_binary_single_class (line 118) | def test_sensitivity_specificity_f_binary_single_class( function test_sensitivity_specificity_extra_labels (line 134) | def test_sensitivity_specificity_extra_labels(average, expected_specific... function test_sensitivity_specificity_ignored_labels (line 142) | def test_sensitivity_specificity_ignored_labels(): function test_sensitivity_specificity_error_multilabels (line 163) | def test_sensitivity_specificity_error_multilabels(): function test_sensitivity_specificity_support_errors (line 173) | def test_sensitivity_specificity_support_errors(): function test_sensitivity_specificity_unused_pos_label (line 185) | def test_sensitivity_specificity_unused_pos_label(): function test_geometric_mean_support_binary (line 194) | def test_geometric_mean_support_binary(): function test_geometric_mean_multiclass (line 222) | def test_geometric_mean_multiclass(y_true, y_pred, correction, expected_... function test_geometric_mean_average (line 237) | def test_geometric_mean_average(y_true, y_pred, average, expected_gmean): function test_geometric_mean_sample_weight (line 262) | def test_geometric_mean_sample_weight( function test_geometric_mean_score_prediction (line 284) | def test_geometric_mean_score_prediction(average, expected_gmean): function test_iba_geo_mean_binary (line 291) | def test_iba_geo_mean_binary(): function _format_report (line 302) | def _format_report(report): function test_classification_report_imbalanced_multiclass (line 306) | def test_classification_report_imbalanced_multiclass(): function test_classification_report_imbalanced_multiclass_with_digits (line 337) | def test_classification_report_imbalanced_multiclass_with_digits(): function test_classification_report_imbalanced_multiclass_with_string_label (line 369) | def test_classification_report_imbalanced_multiclass_with_string_label(): function test_classification_report_imbalanced_multiclass_with_unicode_label (line 396) | def test_classification_report_imbalanced_multiclass_with_unicode_label(): function test_classification_report_imbalanced_multiclass_with_long_string_label (line 413) | def test_classification_report_imbalanced_multiclass_with_long_string_la... function test_iba_sklearn_metrics (line 440) | def test_iba_sklearn_metrics(score, expected_score): function test_iba_error_y_score_prob_error (line 452) | def test_iba_error_y_score_prob_error(score_loss): function test_classification_report_imbalanced_dict_with_target_names (line 460) | def test_classification_report_imbalanced_dict_with_target_names(): function test_classification_report_imbalanced_dict_without_target_names (line 492) | def test_classification_report_imbalanced_dict_without_target_names(): function test_macro_averaged_mean_absolute_error (line 531) | def test_macro_averaged_mean_absolute_error(y_true, y_pred, expected_ma_... function test_macro_averaged_mean_absolute_error_sample_weight (line 536) | def test_macro_averaged_mean_absolute_error_sample_weight(): FILE: imblearn/metrics/tests/test_pairwise.py function data (line 16) | def data(): function test_value_difference_metric (line 34) | def test_value_difference_metric(data, dtype, k, r, y_type, encode_label): function test_value_difference_metric_property (line 62) | def test_value_difference_metric_property(dtype, k, r, y_type, encode_la... function test_value_difference_metric_categories (line 111) | def test_value_difference_metric_categories(data): function test_value_difference_metric_categories_error (line 128) | def test_value_difference_metric_categories_error(data): function test_value_difference_metric_missing_categories (line 143) | def test_value_difference_metric_missing_categories(data): function test_value_difference_value_unfitted (line 163) | def test_value_difference_value_unfitted(data): FILE: imblearn/metrics/tests/test_score_objects.py function data (line 23) | def data(): function test_scorer_common_average (line 38) | def test_scorer_common_average(data, score, expected_score, average): function test_scorer_default_average (line 66) | def test_scorer_default_average(data, score, average, expected_score): FILE: imblearn/model_selection/_split.py class InstanceHardnessCV (line 11) | class InstanceHardnessCV(BaseCrossValidator): method __init__ (line 49) | def __init__(self, estimator, *, n_splits=5, pos_label=None): method split (line 54) | def split(self, X, y, groups=None): method get_n_splits (line 102) | def get_n_splits(self, X=None, y=None, groups=None): FILE: imblearn/model_selection/tests/test_split.py function data (line 13) | def data(): function test_groups_parameter_warning (line 25) | def test_groups_parameter_warning(data): function test_error_on_multiclass (line 35) | def test_error_on_multiclass(): function test_default_params (line 43) | def test_default_params(data): function test_target_string_labels (line 54) | def test_target_string_labels(data, dtype_target): function test_target_string_pos_label (line 71) | def test_target_string_pos_label(data, dtype_target): function test_n_splits (line 96) | def test_n_splits(n_splits): FILE: imblearn/over_sampling/_adasyn.py class ADASYN (line 23) | class ADASYN(BaseOverSampler): method __init__ (line 123) | def __init__( method _validate_estimator (line 134) | def _validate_estimator(self): method _fit_resample (line 140) | def _fit_resample(self, X, y): method _more_tags (line 208) | def _more_tags(self): method __sklearn_tags__ (line 213) | def __sklearn_tags__(self): FILE: imblearn/over_sampling/_random_over_sampler.py class RandomOverSampler (line 27) | class RandomOverSampler(BaseOverSampler): method __init__ (line 146) | def __init__( method _check_X_y (line 157) | def _check_X_y(self, X, y): method _fit_resample (line 163) | def _fit_resample(self, X, y): method _more_tags (line 252) | def _more_tags(self): method __sklearn_tags__ (line 262) | def __sklearn_tags__(self): FILE: imblearn/over_sampling/_smote/base.py class BaseSMOTE (line 40) | class BaseSMOTE(BaseOverSampler): method __init__ (line 51) | def __init__( method _validate_estimator (line 61) | def _validate_estimator(self): method _make_samples (line 69) | def _make_samples( method _generate_samples (line 124) | def _generate_samples( method _in_danger_noise (line 191) | def _in_danger_noise(self, nn_estimator, samples, target_class, y, kin... class SMOTE (line 242) | class SMOTE(BaseSMOTE): method __init__ (line 335) | def __init__( method _fit_resample (line 348) | def _fit_resample(self, X, y): class SMOTENC (line 381) | class SMOTENC(SMOTE): method __init__ (line 533) | def __init__( method _check_X_y (line 550) | def _check_X_y(self, X, y): method _validate_column_types (line 559) | def _validate_column_types(self, X): method _validate_estimator (line 582) | def _validate_estimator(self): method _fit_resample (line 595) | def _fit_resample(self, X, y): method _generate_samples (line 707) | def _generate_samples(self, X, nn_data, nn_num, rows, cols, steps, y_t... method _more_tags (line 752) | def _more_tags(self): method __sklearn_tags__ (line 755) | def __sklearn_tags__(self): class SMOTEN (line 766) | class SMOTEN(SMOTE): method __init__ (line 874) | def __init__( method _check_X_y (line 889) | def _check_X_y(self, X, y): method _validate_estimator (line 902) | def _validate_estimator(self): method _make_samples (line 907) | def _make_samples(self, X_class, klass, y_dtype, nn_indices, n_samples): method _fit_resample (line 923) | def _fit_resample(self, X, y): method _more_tags (line 981) | def _more_tags(self): method __sklearn_tags__ (line 984) | def __sklearn_tags__(self): FILE: imblearn/over_sampling/_smote/cluster.py class KMeansSMOTE (line 30) | class KMeansSMOTE(BaseSMOTE): method __init__ (line 161) | def __init__( method _validate_estimator (line 182) | def _validate_estimator(self): method _find_cluster_sparsity (line 200) | def _find_cluster_sparsity(self, X): method _fit_resample (line 218) | def _fit_resample(self, X, y): FILE: imblearn/over_sampling/_smote/filter.py class BorderlineSMOTE (line 28) | class BorderlineSMOTE(BaseSMOTE): method __init__ (line 159) | def __init__( method _validate_estimator (line 176) | def _validate_estimator(self): method _fit_resample (line 182) | def _fit_resample(self, X, y): class SVMSMOTE (line 235) | class SVMSMOTE(BaseSMOTE): method __init__ (line 372) | def __init__( method _validate_estimator (line 391) | def _validate_estimator(self): method _fit_resample (line 402) | def _fit_resample(self, X, y): FILE: imblearn/over_sampling/_smote/tests/test_borderline_smote.py function test_borderline_smote_no_in_danger_samples (line 12) | def test_borderline_smote_no_in_danger_samples(kind): function test_borderline_smote_kind (line 36) | def test_borderline_smote_kind(): function test_borderline_smote_in_danger (line 75) | def test_borderline_smote_in_danger(): FILE: imblearn/over_sampling/_smote/tests/test_kmeans_smote.py function data (line 12) | def data(): function test_kmeans_smote (line 42) | def test_kmeans_smote(data): function test_sample_kmeans_custom (line 73) | def test_sample_kmeans_custom(data, k_neighbors, kmeans_estimator): function test_sample_kmeans_not_enough_clusters (line 89) | def test_sample_kmeans_not_enough_clusters(data): function test_sample_kmeans_density_estimation (line 98) | def test_sample_kmeans_density_estimation(density_exponent, cluster_bala... FILE: imblearn/over_sampling/_smote/tests/test_smote.py function test_sample_regular (line 41) | def test_sample_regular(): function test_sample_regular_half (line 79) | def test_sample_regular_half(): function test_sample_regular_with_nn (line 113) | def test_sample_regular_with_nn(): FILE: imblearn/over_sampling/_smote/tests/test_smote_nc.py function data_heterogneous_ordered (line 19) | def data_heterogneous_ordered(): function data_heterogneous_unordered (line 33) | def data_heterogneous_unordered(): function data_heterogneous_masked (line 47) | def data_heterogneous_masked(): function data_heterogneous_unordered_multiclass (line 61) | def data_heterogneous_unordered_multiclass(): function data_sparse (line 75) | def data_sparse(format): function test_smotenc_error (line 89) | def test_smotenc_error(): function test_smotenc (line 107) | def test_smotenc(data): function test_smotenc_check_target_type (line 130) | def test_smotenc_check_target_type(): function test_smotenc_samplers_one_label (line 143) | def test_smotenc_samplers_one_label(): function test_smotenc_fit (line 151) | def test_smotenc_fit(): function test_smotenc_fit_resample (line 160) | def test_smotenc_fit_resample(): function test_smotenc_fit_resample_sampling_strategy (line 170) | def test_smotenc_fit_resample_sampling_strategy(): function test_smotenc_pandas (line 180) | def test_smotenc_pandas(): function test_smotenc_preserve_dtype (line 193) | def test_smotenc_preserve_dtype(): function test_smotenc_raising_error_all_categorical (line 211) | def test_smotenc_raising_error_all_categorical(categorical_features): function test_smote_nc_with_null_median_std (line 225) | def test_smote_nc_with_null_median_std(): function test_smotenc_categorical_encoder (line 264) | def test_smotenc_categorical_encoder(): function test_smotenc_bool_categorical (line 280) | def test_smotenc_bool_categorical(): function test_smotenc_categorical_features_str (line 314) | def test_smotenc_categorical_features_str(): function test_smotenc_categorical_features_auto (line 339) | def test_smotenc_categorical_features_auto(): function test_smote_nc_categorical_features_auto_error (line 366) | def test_smote_nc_categorical_features_auto_error(): FILE: imblearn/over_sampling/_smote/tests/test_smoten.py function data (line 11) | def data(): function test_smoten (line 25) | def test_smoten(data): function test_smoten_resampling (line 36) | def test_smoten_resampling(): function test_smoten_sparse_input (line 62) | def test_smoten_sparse_input(data, sparse_format): function test_smoten_categorical_encoder (line 79) | def test_smoten_categorical_encoder(data): FILE: imblearn/over_sampling/_smote/tests/test_svm_smote.py function data (line 13) | def data(): function test_svm_smote (line 42) | def test_svm_smote(data): function test_svm_smote_not_svm (line 58) | def test_svm_smote_not_svm(data): function test_svm_smote_all_noise (line 67) | def test_svm_smote_all_noise(data): FILE: imblearn/over_sampling/base.py class BaseOverSampler (line 16) | class BaseOverSampler(BaseSampler): FILE: imblearn/over_sampling/tests/test_adasyn.py function test_ada_init (line 41) | def test_ada_init(): function test_ada_fit_resample (line 47) | def test_ada_fit_resample(): function test_ada_fit_resample_nn_obj (line 85) | def test_ada_fit_resample_nn_obj(): FILE: imblearn/over_sampling/tests/test_common.py function numerical_data (line 20) | def numerical_data(): function categorical_data (line 29) | def categorical_data(): function heterogeneous_data (line 44) | def heterogeneous_data(): function test_smote_m_neighbors (line 57) | def test_smote_m_neighbors(numerical_data, smote): function test_numerical_smote_custom_nn (line 83) | def test_numerical_smote_custom_nn(numerical_data, smote, neighbor_estim... function test_categorical_smote_k_custom_nn (line 94) | def test_categorical_smote_k_custom_nn(categorical_data): function test_heterogeneous_smote_k_custom_nn (line 103) | def test_heterogeneous_smote_k_custom_nn(heterogeneous_data): function test_numerical_smote_extra_custom_nn (line 119) | def test_numerical_smote_extra_custom_nn(numerical_data, smote): FILE: imblearn/over_sampling/tests/test_random_over_sampler.py function data (line 24) | def data(): function test_ros_init (line 43) | def test_ros_init(): function test_ros_fit_resample (line 53) | def test_ros_fit_resample(X_type, data, params): function test_ros_fit_resample_half (line 92) | def test_ros_fit_resample_half(data, params): function test_multiclass_fit_resample (line 124) | def test_multiclass_fit_resample(data, params): function test_random_over_sampling_heterogeneous_data (line 143) | def test_random_over_sampling_heterogeneous_data(): function test_random_over_sampling_nan_inf (line 159) | def test_random_over_sampling_nan_inf(data): function test_random_over_sampling_heterogeneous_data_smoothed_bootstrap (line 180) | def test_random_over_sampling_heterogeneous_data_smoothed_bootstrap(): function test_random_over_sampler_smoothed_bootstrap (line 194) | def test_random_over_sampler_smoothed_bootstrap(X_type, data): function test_random_over_sampler_equivalence_shrinkage (line 208) | def test_random_over_sampler_equivalence_shrinkage(data): function test_random_over_sampler_shrinkage_behaviour (line 228) | def test_random_over_sampler_shrinkage_behaviour(data): function test_random_over_sampler_shrinkage_error (line 253) | def test_random_over_sampler_shrinkage_error(data, shrinkage, err_msg): function test_random_over_sampler_strings (line 264) | def test_random_over_sampler_strings(sampling_strategy): function test_random_over_sampling_datetime (line 278) | def test_random_over_sampling_datetime(): function test_random_over_sampler_full_nat (line 291) | def test_random_over_sampler_full_nat(): FILE: imblearn/pipeline.py function _raise_or_warn_if_not_fitted (line 47) | def _raise_or_warn_if_not_fitted(estimator): function _cached_transform (line 73) | def _cached_transform( class Pipeline (line 111) | class Pipeline(pipeline.Pipeline): method __init__ (line 243) | def __init__(self, steps, *, transform_input=None, memory=None, verbos... method _validate_steps (line 251) | def _validate_steps(self): method _iter (line 301) | def _iter(self, with_final=True, filter_passthrough=True, filter_resam... method _get_metadata_for_step (line 314) | def _get_metadata_for_step(self, *, step_idx, step_params, all_params): method _fit (line 394) | def _fit(self, X, y=None, routed_params=None, raw_params=None): method fit (line 455) | def fit(self, X, y=None, **params): method _can_fit_transform (line 525) | def _can_fit_transform(self): method fit_transform (line 537) | def fit_transform(self, X, y=None, **params): method predict (line 602) | def predict(self, X, **params): method _can_fit_resample (line 665) | def _can_fit_resample(self): method fit_resample (line 675) | def fit_resample(self, X, y=None, **params): method fit_predict (line 738) | def fit_predict(self, X, y=None, **params): method predict_proba (line 801) | def predict_proba(self, X, **params): method decision_function (line 860) | def decision_function(self, X, **params): method score_samples (line 908) | def score_samples(self, X): method predict_log_proba (line 935) | def predict_log_proba(self, X, **params): method _can_transform (line 993) | def _can_transform(self): method transform (line 999) | def transform(self, X, **params): method _can_inverse_transform (line 1043) | def _can_inverse_transform(self): method inverse_transform (line 1047) | def inverse_transform(self, Xt, **params): method score (line 1091) | def score(self, X, y=None, sample_weight=None, **params): method get_metadata_routing (line 1152) | def get_metadata_routing(self): method _check_method_params (line 1239) | def _check_method_params(self, method, props, **kwargs): method __sklearn_is_fitted__ (line 1268) | def __sklearn_is_fitted__(self): method __sklearn_tags__ (line 1298) | def __sklearn_tags__(self): function _fit_resample_one (line 1330) | def _fit_resample_one(sampler, X, y, message_clsname="", message=None, p... function _transform_one (line 1337) | def _transform_one(transformer, X, y, weight, params=None): function _fit_transform_one (line 1366) | def _fit_transform_one( function make_pipeline (line 1398) | def make_pipeline(*steps, memory=None, transform_input=None, verbose=Fal... FILE: imblearn/tensorflow/_generator.py function balanced_batch_generator (line 13) | def balanced_batch_generator( FILE: imblearn/tensorflow/tests/test_generator.py function data (line 16) | def data(): function check_balanced_batch_generator_tf_1_X_X (line 23) | def check_balanced_batch_generator_tf_1_X_X(dataset, sampler): function check_balanced_batch_generator_tf_2_X_X_compat_1_X_X (line 84) | def check_balanced_batch_generator_tf_2_X_X_compat_1_X_X(dataset, sampler): function test_balanced_batch_generator (line 148) | def test_balanced_batch_generator(data, sampler): function test_balanced_batch_generator_function_sparse (line 156) | def test_balanced_batch_generator_function_sparse(data, keep_sparse): FILE: imblearn/tests/test_base.py function test_function_sampler_reject_sparse (line 26) | def test_function_sampler_reject_sparse(): function test_function_sampler_identity (line 40) | def test_function_sampler_identity(X, y): function test_function_sampler_func (line 50) | def test_function_sampler_func(X, y): function test_function_sampler_func_kwargs (line 63) | def test_function_sampler_func_kwargs(X, y): function test_function_sampler_validate (line 79) | def test_function_sampler_validate(): function test_function_resampler_fit (line 95) | def test_function_resampler_fit(): FILE: imblearn/tests/test_common.py function test_all_estimator_no_base_class (line 35) | def test_all_estimator_no_base_class(name, Estimator): function test_estimators_compatibility_sklearn (line 44) | def test_estimators_compatibility_sklearn(estimator, check, request): function test_estimators_imblearn (line 52) | def test_estimators_imblearn(estimator, check, request): function test_check_param_validation (line 69) | def test_check_param_validation(estimator): function test_strategy_as_ordered_dict (line 76) | def test_strategy_as_ordered_dict(Sampler): function test_pandas_column_name_consistency (line 94) | def test_pandas_column_name_consistency(estimator): FILE: imblearn/tests/test_docstring_parameters.py function test_docstring_parameters (line 65) | def test_docstring_parameters(): function test_tabs (line 141) | def test_tabs(): function test_fit_docstring_attributes (line 159) | def test_fit_docstring_attributes(estimator): function _get_all_fitted_attributes (line 222) | def _get_all_fitted_attributes(estimator): FILE: imblearn/tests/test_exceptions.py function test_raise_isinstance_error (line 11) | def test_raise_isinstance_error(): FILE: imblearn/tests/test_pipeline.py class NoFit (line 58) | class NoFit: method __init__ (line 61) | def __init__(self, a=None, b=None): method __sklearn_tags__ (line 65) | def __sklearn_tags__(self): class NoTrans (line 69) | class NoTrans(NoFit): method fit (line 70) | def fit(self, X, y): method get_params (line 73) | def get_params(self, deep=False): method set_params (line 76) | def set_params(self, **params): class NoInvTransf (line 81) | class NoInvTransf(NoTrans): method transform (line 82) | def transform(self, X, y=None): class Transf (line 86) | class Transf(NoInvTransf): method transform (line 87) | def transform(self, X, y=None): method inverse_transform (line 90) | def inverse_transform(self, X): class TransfFitParams (line 94) | class TransfFitParams(Transf): method fit (line 95) | def fit(self, X, y, **fit_params): class Mult (line 100) | class Mult(BaseEstimator): method __init__ (line 101) | def __init__(self, mult=1): method __sklearn_is_fitted__ (line 104) | def __sklearn_is_fitted__(self): method fit (line 107) | def fit(self, X, y): method transform (line 110) | def transform(self, X): method inverse_transform (line 113) | def inverse_transform(self, X): method predict (line 116) | def predict(self, X): method score (line 121) | def score(self, X, y=None): class FitParamT (line 125) | class FitParamT(BaseEstimator): method __init__ (line 128) | def __init__(self): method fit (line 131) | def fit(self, X, y, should_succeed=False): method predict (line 136) | def predict(self, X): method fit_predict (line 139) | def fit_predict(self, X, y, should_succeed=False): method score (line 143) | def score(self, X, y=None, sample_weight=None): class DummyTransf (line 149) | class DummyTransf(Transf): method fit (line 152) | def fit(self, X, y): class DummyEstimatorParams (line 160) | class DummyEstimatorParams(BaseEstimator): method __sklearn_is_fitted__ (line 163) | def __sklearn_is_fitted__(self): method fit (line 166) | def fit(self, X, y): method predict (line 169) | def predict(self, X, got_attribute=False): class DummySampler (line 174) | class DummySampler(NoTrans): method fit_resample (line 177) | def fit_resample(self, X, y): class FitTransformSample (line 185) | class FitTransformSample(NoTrans): method __sklearn_is_fitted__ (line 188) | def __sklearn_is_fitted__(self): method fit (line 191) | def fit(self, X, y, should_succeed=False): method fit_resample (line 194) | def fit_resample(self, X, y=None): method fit_transform (line 197) | def fit_transform(self, X, y=None): method transform (line 200) | def transform(self, X, y=None): function test_pipeline_init_tuple (line 204) | def test_pipeline_init_tuple(): function test_pipeline_init (line 215) | def test_pipeline_init(): function test_pipeline_methods_anova (line 285) | def test_pipeline_methods_anova(): function test_pipeline_fit_params (line 301) | def test_pipeline_fit_params(): function test_pipeline_sample_weight_supported (line 315) | def test_pipeline_sample_weight_supported(): function test_pipeline_sample_weight_unsupported (line 326) | def test_pipeline_sample_weight_unsupported(): function test_pipeline_raise_set_params_error (line 337) | def test_pipeline_raise_set_params_error(): function test_pipeline_methods_pca_svm (line 348) | def test_pipeline_methods_pca_svm(): function test_pipeline_methods_preprocessing_svm (line 364) | def test_pipeline_methods_preprocessing_svm(): function test_fit_predict_on_pipeline (line 400) | def test_fit_predict_on_pipeline(): function test_fit_predict_on_pipeline_without_fit_predict (line 423) | def test_fit_predict_on_pipeline_without_fit_predict(): function test_fit_predict_with_intermediate_fit_params (line 434) | def test_fit_predict_with_intermediate_fit_params(): function test_pipeline_transform (line 446) | def test_pipeline_transform(): function test_pipeline_fit_transform (line 466) | def test_pipeline_fit_transform(): function test_set_pipeline_steps (line 480) | def test_set_pipeline_steps(): function test_pipeline_correctly_adjusts_steps (line 509) | def test_pipeline_correctly_adjusts_steps(passthrough): function test_set_pipeline_step_passthrough (line 525) | def test_set_pipeline_step_passthrough(passthrough): function test_pipeline_ducktyping (line 604) | def test_pipeline_ducktyping(): function test_make_pipeline (line 632) | def test_make_pipeline(): function test_classes_property (line 647) | def test_classes_property(): function test_pipeline_memory_transformer (line 667) | def test_pipeline_memory_transformer(): function test_pipeline_memory_sampler (line 733) | def test_pipeline_memory_sampler(): function test_pipeline_methods_pca_rus_svm (line 808) | def test_pipeline_methods_pca_rus_svm(): function test_pipeline_methods_rus_pca_svm (line 835) | def test_pipeline_methods_rus_pca_svm(): function test_pipeline_sample (line 862) | def test_pipeline_sample(): function test_pipeline_sample_transform (line 901) | def test_pipeline_sample_transform(): function test_pipeline_none_classifier (line 925) | def test_pipeline_none_classifier(): function test_pipeline_none_sampler_classifier (line 948) | def test_pipeline_none_sampler_classifier(): function test_pipeline_sampler_none_classifier (line 972) | def test_pipeline_sampler_none_classifier(): function test_pipeline_none_sampler_sample (line 996) | def test_pipeline_none_sampler_sample(): function test_pipeline_none_transformer (line 1016) | def test_pipeline_none_transformer(): function test_pipeline_methods_anova_rus (line 1040) | def test_pipeline_methods_anova_rus(): function test_pipeline_with_step_that_implements_both_sample_and_transform (line 1066) | def test_pipeline_with_step_that_implements_both_sample_and_transform(): function test_pipeline_with_step_that_it_is_pipeline (line 1087) | def test_pipeline_with_step_that_it_is_pipeline(): function test_pipeline_fit_then_sample_with_sampler_last_estimator (line 1111) | def test_pipeline_fit_then_sample_with_sampler_last_estimator(): function test_pipeline_fit_then_sample_3_samplers_with_sampler_last_estimator (line 1136) | def test_pipeline_fit_then_sample_3_samplers_with_sampler_last_estimator(): function test_make_pipeline_memory (line 1161) | def test_make_pipeline_memory(): function test_predict_with_predict_params (line 1173) | def test_predict_with_predict_params(): function test_resampler_last_stage_passthrough (line 1182) | def test_resampler_last_stage_passthrough(): function test_pipeline_score_samples_pca_lof_binary (line 1201) | def test_pipeline_score_samples_pca_lof_binary(): function test_score_samples_on_pipeline_without_score_samples (line 1230) | def test_score_samples_on_pipeline_without_score_samples(): function test_pipeline_param_error (line 1244) | def test_pipeline_param_error(): function test_verbose (line 1317) | def test_verbose(est, method, pattern, capsys): function test_pipeline_score_samples_pca_lof_multiclass (line 1332) | def test_pipeline_score_samples_pca_lof_multiclass(): function test_pipeline_param_validation (line 1351) | def test_pipeline_param_validation(): function test_pipeline_with_set_output (line 1358) | def test_pipeline_with_set_output(): function test_pipeline_warns_not_fitted (line 1393) | def test_pipeline_warns_not_fitted(method): function test_transform_input_explicit_value_check (line 1442) | def test_transform_input_explicit_value_check(): function test_transform_input_no_slep6 (line 1475) | def test_transform_input_no_slep6(): function test_transform_input_sklearn_version (line 1489) | def test_transform_input_sklearn_version(): function test_metadata_routing_with_sampler (line 1505) | def test_metadata_routing_with_sampler(): FILE: imblearn/tests/test_public_functions.py function test_function_param_validation (line 29) | def test_function_param_validation(func_module): FILE: imblearn/under_sampling/_prototype_generation/_cluster_centroids.py class ClusterCentroids (line 28) | class ClusterCentroids(BaseUnderSampler): method __init__ (line 124) | def __init__( method _validate_estimator (line 137) | def _validate_estimator(self): method _generate_sample (line 149) | def _generate_sample(self, X, y, centroids, target_class): method _fit_resample (line 164) | def _fit_resample(self, X, y): method _more_tags (line 204) | def _more_tags(self): method __sklearn_tags__ (line 207) | def __sklearn_tags__(self): FILE: imblearn/under_sampling/_prototype_generation/tests/test_cluster_centroids.py function test_fit_resample_check_voting (line 37) | def test_fit_resample_check_voting(X, expected_voting): function test_fit_resample_auto (line 44) | def test_fit_resample_auto(): function test_fit_resample_half (line 53) | def test_fit_resample_half(): function test_multiclass_fit_resample (line 62) | def test_multiclass_fit_resample(): function test_fit_resample_object (line 74) | def test_fit_resample_object(): function test_fit_hard_voting (line 88) | def test_fit_hard_voting(): function test_cluster_centroids_hard_target_class (line 107) | def test_cluster_centroids_hard_target_class(): function test_cluster_centroids_custom_clusterer (line 141) | def test_cluster_centroids_custom_clusterer(): FILE: imblearn/under_sampling/_prototype_selection/_condensed_nearest_neighbour.py class CondensedNearestNeighbour (line 28) | class CondensedNearestNeighbour(BaseCleaningSampler): method __init__ (line 132) | def __init__( method _validate_estimator (line 147) | def _validate_estimator(self): method _fit_resample (line 160) | def _fit_resample(self, X, y): method _more_tags (line 241) | def _more_tags(self): method __sklearn_tags__ (line 244) | def __sklearn_tags__(self): FILE: imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py class EditedNearestNeighbours (line 28) | class EditedNearestNeighbours(BaseCleaningSampler): method __init__ (line 136) | def __init__( method _validate_estimator (line 149) | def _validate_estimator(self): method _fit_resample (line 156) | def _fit_resample(self, X, y): method _more_tags (line 192) | def _more_tags(self): method __sklearn_tags__ (line 195) | def __sklearn_tags__(self): class RepeatedEditedNearestNeighbours (line 205) | class RepeatedEditedNearestNeighbours(BaseCleaningSampler): method __init__ (line 327) | def __init__( method _validate_estimator (line 342) | def _validate_estimator(self): method _fit_resample (line 355) | def _fit_resample(self, X, y): method _more_tags (line 418) | def _more_tags(self): method __sklearn_tags__ (line 421) | def __sklearn_tags__(self): class AllKNN (line 431) | class AllKNN(BaseCleaningSampler): method __init__ (line 552) | def __init__( method _validate_estimator (line 567) | def _validate_estimator(self): method _fit_resample (line 580) | def _fit_resample(self, X, y): method _more_tags (line 632) | def _more_tags(self): method __sklearn_tags__ (line 635) | def __sklearn_tags__(self): FILE: imblearn/under_sampling/_prototype_selection/_instance_hardness_threshold.py class InstanceHardnessThreshold (line 30) | class InstanceHardnessThreshold(BaseUnderSampler): method __init__ (line 123) | def __init__( method _validate_estimator (line 138) | def _validate_estimator(self, random_state): method _fit_resample (line 156) | def _fit_resample(self, X, y): method _more_tags (line 203) | def _more_tags(self): method __sklearn_tags__ (line 206) | def __sklearn_tags__(self): FILE: imblearn/under_sampling/_prototype_selection/_nearmiss.py class NearMiss (line 24) | class NearMiss(BaseUnderSampler): method __init__ (line 132) | def __init__( method _selection_dist_based (line 147) | def _selection_dist_based( method _validate_estimator (line 216) | def _validate_estimator(self): method _fit_resample (line 228) | def _fit_resample(self, X, y): method _more_tags (line 309) | def _more_tags(self): method __sklearn_tags__ (line 319) | def __sklearn_tags__(self): FILE: imblearn/under_sampling/_prototype_selection/_neighbourhood_cleaning_rule.py class NeighbourhoodCleaningRule (line 30) | class NeighbourhoodCleaningRule(BaseCleaningSampler): method __init__ (line 142) | def __init__( method _validate_estimator (line 157) | def _validate_estimator(self): method _fit_resample (line 181) | def _fit_resample(self, X, y): method _more_tags (line 233) | def _more_tags(self): method __sklearn_tags__ (line 236) | def __sklearn_tags__(self): FILE: imblearn/under_sampling/_prototype_selection/_one_sided_selection.py class OneSidedSelection (line 27) | class OneSidedSelection(BaseCleaningSampler): method __init__ (line 125) | def __init__( method _validate_estimator (line 140) | def _validate_estimator(self): method _fit_resample (line 153) | def _fit_resample(self, X, y): method _more_tags (line 207) | def _more_tags(self): method __sklearn_tags__ (line 210) | def __sklearn_tags__(self): FILE: imblearn/under_sampling/_prototype_selection/_random_under_sampler.py class RandomUnderSampler (line 21) | class RandomUnderSampler(BaseUnderSampler): method __init__ (line 93) | def __init__( method _check_X_y (line 100) | def _check_X_y(self, X, y): method _fit_resample (line 106) | def _fit_resample(self, X, y): method _more_tags (line 134) | def _more_tags(self): method __sklearn_tags__ (line 144) | def __sklearn_tags__(self): FILE: imblearn/under_sampling/_prototype_selection/_tomek_links.py class TomekLinks (line 23) | class TomekLinks(BaseCleaningSampler): method __init__ (line 98) | def __init__(self, *, sampling_strategy="auto", n_jobs=None): method is_tomek (line 103) | def is_tomek(y, nn_index, class_type): method _fit_resample (line 145) | def _fit_resample(self, X, y): method _more_tags (line 159) | def _more_tags(self): method __sklearn_tags__ (line 162) | def __sklearn_tags__(self): FILE: imblearn/under_sampling/_prototype_selection/tests/test_allknn.py function test_allknn_fit_resample (line 105) | def test_allknn_fit_resample(): function test_all_knn_allow_minority (line 175) | def test_all_knn_allow_minority(): function test_allknn_fit_resample_mode (line 196) | def test_allknn_fit_resample_mode(): function test_allknn_fit_resample_with_nn_object (line 274) | def test_allknn_fit_resample_with_nn_object(): function test_alknn_not_good_object (line 353) | def test_alknn_not_good_object(): FILE: imblearn/under_sampling/_prototype_selection/tests/test_condensed_nearest_neighbour.py function test_cnn_init (line 42) | def test_cnn_init(): function test_cnn_fit_resample (line 49) | def test_cnn_fit_resample(): function test_cnn_fit_resample_with_object (line 73) | def test_cnn_fit_resample_with_object(n_neighbors): function test_condensed_nearest_neighbour_multiclass (line 101) | def test_condensed_nearest_neighbour_multiclass(): FILE: imblearn/under_sampling/_prototype_selection/tests/test_edited_nearest_neighbours.py function test_enn_init (line 40) | def test_enn_init(): function test_enn_fit_resample (line 48) | def test_enn_fit_resample(): function test_enn_fit_resample_mode (line 68) | def test_enn_fit_resample_mode(): function test_enn_fit_resample_with_nn_object (line 95) | def test_enn_fit_resample_with_nn_object(): function test_enn_check_kind_selection (line 123) | def test_enn_check_kind_selection(): FILE: imblearn/under_sampling/_prototype_selection/tests/test_instance_hardness_threshold.py function test_iht_init (line 38) | def test_iht_init(): function test_iht_fit_resample (line 50) | def test_iht_fit_resample(): function test_iht_fit_resample_half (line 57) | def test_iht_fit_resample_half(): function test_iht_fit_resample_class_obj (line 69) | def test_iht_fit_resample_class_obj(): function test_iht_reproducibility (line 77) | def test_iht_reproducibility(): function test_iht_fit_resample_default_estimator (line 91) | def test_iht_fit_resample_default_estimator(): function test_iht_estimator_pipeline (line 99) | def test_iht_estimator_pipeline(): FILE: imblearn/under_sampling/_prototype_selection/tests/test_nearmiss.py function test_nm_fit_resample_auto (line 36) | def test_nm_fit_resample_auto(): function test_nm_fit_resample_float_sampling_strategy (line 91) | def test_nm_fit_resample_float_sampling_strategy(): function test_nm_fit_resample_nn_obj (line 153) | def test_nm_fit_resample_nn_obj(): FILE: imblearn/under_sampling/_prototype_selection/tests/test_neighbourhood_cleaning_rule.py function data (line 17) | def data(): function test_ncr_threshold_cleaning (line 31) | def test_ncr_threshold_cleaning(data): function test_ncr_n_neighbors (line 61) | def test_ncr_n_neighbors(data): FILE: imblearn/under_sampling/_prototype_selection/tests/test_one_sided_selection.py function test_oss_init (line 37) | def test_oss_init(): function test_oss_fit_resample (line 45) | def test_oss_fit_resample(): function test_oss_with_object (line 71) | def test_oss_with_object(n_neighbors): function test_one_sided_selection_multiclass (line 101) | def test_one_sided_selection_multiclass(): FILE: imblearn/under_sampling/_prototype_selection/tests/test_random_under_sampler.py function test_rus_fit_resample (line 35) | def test_rus_fit_resample(as_frame): function test_rus_fit_resample_half (line 64) | def test_rus_fit_resample_half(): function test_multiclass_fit_resample (line 91) | def test_multiclass_fit_resample(): function test_random_under_sampling_heterogeneous_data (line 103) | def test_random_under_sampling_heterogeneous_data(): function test_random_under_sampling_nan_inf (line 116) | def test_random_under_sampling_nan_inf(): function test_random_under_sampler_strings (line 139) | def test_random_under_sampler_strings(sampling_strategy): function test_random_under_sampling_datetime (line 153) | def test_random_under_sampling_datetime(): function test_random_under_sampler_full_nat (line 166) | def test_random_under_sampler_full_nat(): FILE: imblearn/under_sampling/_prototype_selection/tests/test_repeated_edited_nearest_neighbours.py function test_renn_init (line 103) | def test_renn_init(): function test_renn_iter_wrong (line 111) | def test_renn_iter_wrong(): function test_renn_fit_resample (line 118) | def test_renn_fit_resample(): function test_renn_fit_resample_mode_object (line 160) | def test_renn_fit_resample_mode_object(): function test_renn_fit_resample_mode (line 245) | def test_renn_fit_resample_mode(): function test_renn_iter_attribute (line 335) | def test_renn_iter_attribute(max_iter, n_iter): FILE: imblearn/under_sampling/_prototype_selection/tests/test_tomek_links.py function test_tl_init (line 40) | def test_tl_init(): function test_tl_fit_resample (line 45) | def test_tl_fit_resample(): function test_tomek_links_strings (line 78) | def test_tomek_links_strings(sampling_strategy): FILE: imblearn/under_sampling/base.py class BaseUnderSampler (line 15) | class BaseUnderSampler(BaseSampler): class BaseCleaningSampler (line 74) | class BaseCleaningSampler(BaseSampler): FILE: imblearn/utils/_docstring.py class Substitution (line 7) | class Substitution: method __init__ (line 15) | def __init__(self, *args, **kwargs): method __call__ (line 21) | def __call__(self, obj): FILE: imblearn/utils/_show_versions.py function _get_deps_info (line 14) | def _get_deps_info(): function show_versions (line 49) | def show_versions(github=False): FILE: imblearn/utils/_tags.py function _dataclass_args (line 15) | def _dataclass_args(): class InputTags (line 20) | class InputTags(SklearnInputTags): class SamplerTags (line 82) | class SamplerTags: class Tags (line 96) | class Tags: function get_tags (line 160) | def get_tags(estimator): function _to_new_tags (line 190) | def _to_new_tags(old_tags, estimator=None): FILE: imblearn/utils/_test_common/instance_generator.py function _tested_estimators (line 101) | def _tested_estimators(type_filter=None): function _construct_instances (line 107) | def _construct_instances(Estimator): function _get_check_estimator_ids (line 130) | def _get_check_estimator_ids(obj): function _yield_instances_for_check (line 166) | def _yield_instances_for_check(check, estimator_orig): function _get_expected_failed_checks (line 240) | def _get_expected_failed_checks(estimator): FILE: imblearn/utils/_validation.py class ArraysTransformer (line 32) | class ArraysTransformer: method __init__ (line 35) | def __init__(self, X, y): method transform (line 39) | def transform(self, X, y): method _gets_props (line 50) | def _gets_props(self, array): method _transfrom_one (line 58) | def _transfrom_one(self, array, props): function _is_neighbors_object (line 96) | def _is_neighbors_object(estimator): function check_neighbors_object (line 116) | def check_neighbors_object(nn_name, nn_object, additional_neighbor=0): function _count_class_sample (line 146) | def _count_class_sample(y): function check_target_type (line 151) | def check_target_type(y, indicate_one_vs_all=False): function _sampling_strategy_all (line 189) | def _sampling_strategy_all(y, sampling_type): function _sampling_strategy_majority (line 206) | def _sampling_strategy_majority(y, sampling_type): function _sampling_strategy_not_majority (line 227) | def _sampling_strategy_not_majority(y, sampling_type): function _sampling_strategy_not_minority (line 253) | def _sampling_strategy_not_minority(y, sampling_type): function _sampling_strategy_minority (line 279) | def _sampling_strategy_minority(y, sampling_type): function _sampling_strategy_auto (line 301) | def _sampling_strategy_auto(y, sampling_type): function _sampling_strategy_dict (line 310) | def _sampling_strategy_dict(sampling_strategy, y, sampling_type): function _sampling_strategy_list (line 364) | def _sampling_strategy_list(sampling_strategy, y, sampling_type): function _sampling_strategy_float (line 389) | def _sampling_strategy_float(sampling_strategy, y, sampling_type): function check_sampling_strategy (line 438) | def check_sampling_strategy(sampling_strategy, y, sampling_type, **kwargs): function _deprecate_positional_args (line 589) | def _deprecate_positional_args(f): function _check_X (line 633) | def _check_X(X): FILE: imblearn/utils/deprecation.py function deprecate_parameter (line 9) | def deprecate_parameter(sampler, version_deprecation, param_deprecated, ... FILE: imblearn/utils/estimator_checks.py function sample_dataset_generator (line 50) | def sample_dataset_generator(): function _set_checking_parameters (line 61) | def _set_checking_parameters(estimator): function _yield_sampler_checks (line 76) | def _yield_sampler_checks(sampler): function _yield_classifier_checks (line 109) | def _yield_classifier_checks(classifier): function _yield_all_checks (line 114) | def _yield_all_checks(estimator, legacy=True): function _check_name (line 134) | def _check_name(check): function _maybe_mark (line 140) | def _maybe_mark(estimator, check, expected_failed_checks=None, mark=None... function _should_be_skipped_or_marked (line 179) | def _should_be_skipped_or_marked( function estimator_checks_generator (line 211) | def estimator_checks_generator( function parametrize_with_checks (line 257) | def parametrize_with_checks(estimators, *, legacy=True, expected_failed_... function check_target_type (line 349) | def check_target_type(name, estimator_orig): function check_samplers_one_label (line 365) | def check_samplers_one_label(name, sampler_orig): function check_samplers_fit (line 386) | def check_samplers_fit(name, sampler_orig): function check_samplers_fit_resample (line 397) | def check_samplers_fit_resample(name, sampler_orig): function check_samplers_sampling_strategy_fit_resample (line 426) | def check_samplers_sampling_strategy_fit_resample(name, sampler_orig): function check_samplers_sparse (line 448) | def check_samplers_sparse(name, sampler_orig): function check_samplers_pandas_sparse (line 462) | def check_samplers_pandas_sparse(name, sampler_orig): function check_samplers_pandas (line 494) | def check_samplers_pandas(name, sampler_orig): function check_samplers_list (line 526) | def check_samplers_list(name, sampler_orig): function check_samplers_multiclass_ova (line 543) | def check_samplers_multiclass_ova(name, sampler_orig): function check_samplers_2d_target (line 555) | def check_samplers_2d_target(name, sampler_orig): function check_samplers_preserve_dtype (line 563) | def check_samplers_preserve_dtype(name, sampler_orig): function check_samplers_sample_indices (line 574) | def check_samplers_sample_indices(name, sampler_orig): function check_samplers_string (line 585) | def check_samplers_string(name, sampler_orig): function check_samplers_nan (line 600) | def check_samplers_nan(name, sampler_orig): function check_classifier_on_multilabel_or_multioutput_targets (line 615) | def check_classifier_on_multilabel_or_multioutput_targets(name, estimato... function check_classifiers_with_encoded_labels (line 623) | def check_classifiers_with_encoded_labels(name, classifier_orig): function check_param_validation (line 651) | def check_param_validation(name, estimator_orig): function check_dataframe_column_names_consistency (line 726) | def check_dataframe_column_names_consistency(name, estimator_orig): function check_sampler_get_feature_names_out (line 868) | def check_sampler_get_feature_names_out(name, sampler_orig): function check_sampler_get_feature_names_out_pandas (line 913) | def check_sampler_get_feature_names_out_pandas(name, sampler_orig): FILE: imblearn/utils/testing.py function all_estimators (line 20) | def all_estimators( class _CustomNearestNeighbors (line 113) | class _CustomNearestNeighbors(BaseEstimator): method __init__ (line 119) | def __init__(self, n_neighbors=1, metric="euclidean"): method fit (line 123) | def fit(self, X, y=None): method kneighbors (line 128) | def kneighbors(self, X, n_neighbors=None, return_distance=True): method kneighbors_graph (line 136) | def kneighbors_graph(X=None, n_neighbors=None, mode="connectivity"): class _CustomClusterer (line 142) | class _CustomClusterer(BaseEstimator): method __init__ (line 145) | def __init__(self, n_clusters=1, expose_cluster_centers=True): method fit (line 149) | def fit(self, X, y=None): method predict (line 154) | def predict(self, X): FILE: imblearn/utils/tests/test_deprecation.py class Sampler (line 11) | class Sampler: method __init__ (line 12) | def __init__(self): function test_deprecate_parameter (line 17) | def test_deprecate_parameter(): FILE: imblearn/utils/tests/test_docstring.py function _dedent_docstring (line 15) | def _dedent_docstring(docstring): function func (line 33) | def func(param_1, param_2): class cls (line 55) | class cls: method __init__ (line 65) | def __init__(self, param_1, param_2): function test_docstring_inject (line 78) | def test_docstring_inject(obj, obj_docstring): function test_docstring_template (line 83) | def test_docstring_template(): function test_docstring_with_python_OO (line 88) | def test_docstring_with_python_OO(): FILE: imblearn/utils/tests/test_estimator_checks.py class BaseBadSampler (line 21) | class BaseBadSampler(BaseEstimator): method fit (line 26) | def fit(self, X, y): method fit_resample (line 29) | def fit_resample(self, X, y): class SamplerSingleClass (line 35) | class SamplerSingleClass(BaseSampler): method fit_resample (line 40) | def fit_resample(self, X, y): method _fit_resample (line 43) | def _fit_resample(self, X, y): class NotFittedSampler (line 47) | class NotFittedSampler(BaseBadSampler): method fit (line 50) | def fit(self, X, y): class NoAcceptingSparseSampler (line 55) | class NoAcceptingSparseSampler(BaseBadSampler): method fit (line 58) | def fit(self, X, y): class NotPreservingDtypeSampler (line 64) | class NotPreservingDtypeSampler(BaseSampler): method _fit_resample (line 69) | def _fit_resample(self, X, y): class IndicesSampler (line 73) | class IndicesSampler(BaseOverSampler): method _check_X_y (line 74) | def _check_X_y(self, X, y): method _fit_resample (line 86) | def _fit_resample(self, X, y): function test_check_samplers_string (line 92) | def test_check_samplers_string(): function test_check_samplers_nan (line 97) | def test_check_samplers_nan(): function _test_single_check (line 111) | def _test_single_check(Estimator, check): function test_all_checks (line 119) | def test_all_checks(): FILE: imblearn/utils/tests/test_min_dependencies.py function test_min_dependencies_readme (line 19) | def test_min_dependencies_readme(): FILE: imblearn/utils/tests/test_show_versions.py function test_get_deps_info (line 8) | def test_get_deps_info(): function test_show_versions_default (line 21) | def test_show_versions_default(capsys): function test_show_versions_github (line 40) | def test_show_versions_github(capsys): FILE: imblearn/utils/tests/test_testing.py function test_all_estimators (line 14) | def test_all_estimators(): function test_custom_nearest_neighbors (line 30) | def test_custom_nearest_neighbors(): FILE: imblearn/utils/tests/test_validation.py function test_check_neighbors_object (line 31) | def test_check_neighbors_object(): function test_check_target_type (line 56) | def test_check_target_type(target, output_target): function test_check_target_type_ova (line 69) | def test_check_target_type_ova(target, output_target, is_ova): function test_check_sampling_strategy_warning (line 77) | def test_check_sampling_strategy_warning(): function test_check_sampling_strategy_float_error (line 106) | def test_check_sampling_strategy_float_error(ratio, y, type, err_msg): function test_check_sampling_strategy_error (line 111) | def test_check_sampling_strategy_error(): function test_check_sampling_strategy_error_wrong_string (line 131) | def test_check_sampling_strategy_error_wrong_string( function test_sampling_strategy_class_target_unknown (line 149) | def test_sampling_strategy_class_target_unknown(sampling_strategy, sampl... function test_sampling_strategy_dict_error (line 155) | def test_sampling_strategy_dict_error(): function test_sampling_strategy_float_error_not_in_range (line 181) | def test_sampling_strategy_float_error_not_in_range(sampling_strategy): function test_sampling_strategy_float_error_not_binary (line 187) | def test_sampling_strategy_float_error_not_binary(): function test_sampling_strategy_list_error_not_clean_sampling (line 195) | def test_sampling_strategy_list_error_not_clean_sampling(sampling_method): function _sampling_strategy_func (line 202) | def _sampling_strategy_func(y): function test_check_sampling_strategy (line 250) | def test_check_sampling_strategy( function test_sampling_strategy_callable_args (line 259) | def test_sampling_strategy_callable_args(): function test_sampling_strategy_check_order (line 291) | def test_sampling_strategy_check_order( function test_arrays_transformer_plain_list (line 301) | def test_arrays_transformer_plain_list(): function test_arrays_transformer_numpy (line 311) | def test_arrays_transformer_numpy(): function test_arrays_transformer_pandas (line 321) | def test_arrays_transformer_pandas(): function test_deprecate_positional_args_warns_for_function (line 351) | def test_deprecate_positional_args_warns_for_function(): function test_is_neighbors_object (line 381) | def test_is_neighbors_object(estimator, is_neighbor_estimator): FILE: maint_tools/test_docstring.py function get_all_methods (line 65) | def get_all_methods(): function _is_checked_function (line 84) | def _is_checked_function(item): function get_all_functions_names (line 98) | def get_all_functions_names(): function filter_errors (line 125) | def filter_errors(errors, method, Estimator=None): function repr_errors (line 164) | def repr_errors(res, estimator=None, method: str | None = None) -> str: function test_function_docstring (line 218) | def test_function_docstring(function_name, request): function test_docstring (line 236) | def test_docstring(Estimator, method, request):