839df67494157eff4a908bce857c8f1f02e6732d,imblearn/utils/estimator_checks.py,,check_samplers_sparse,#Any#Any#,247
Before Change
samplers = [Sampler()]
for sampler in samplers:
set_random_state(sampler)
X_res_sparse, y_res_sparse = sampler.fit_resample(X_sparse, y)
X_res, y_res = sampler.fit_resample(X, y)
if not isinstance(sampler, BaseEnsembleSampler):
assert sparse.issparse(X_res_sparse)
After Change
for sampler in samplers:
// FIXME: in 0.6 set the random_state for all
if name not in DONT_HAVE_RANDOM_STATE:
set_random_state(sampler)
X_res_sparse, y_res_sparse = sampler.fit_resample(X_sparse, y)
X_res, y_res = sampler.fit_resample(X, y)
if not isinstance(sampler, BaseEnsembleSampler):
assert sparse.issparse(X_res_sparse)
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 4
Instances Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 839df67494157eff4a908bce857c8f1f02e6732d
Time: 2018-09-05
Author: g.lemaitre58@gmail.com
File Name: imblearn/utils/estimator_checks.py
Class Name:
Method Name: check_samplers_sparse
Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 839df67494157eff4a908bce857c8f1f02e6732d
Time: 2018-09-05
Author: g.lemaitre58@gmail.com
File Name: imblearn/utils/estimator_checks.py
Class Name:
Method Name: check_samplers_preserve_dtype
Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 839df67494157eff4a908bce857c8f1f02e6732d
Time: 2018-09-05
Author: g.lemaitre58@gmail.com
File Name: imblearn/tensorflow/_generator.py
Class Name:
Method Name: balanced_batch_generator
Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 839df67494157eff4a908bce857c8f1f02e6732d
Time: 2018-09-05
Author: g.lemaitre58@gmail.com
File Name: imblearn/utils/estimator_checks.py
Class Name:
Method Name: check_samplers_multiclass_ova
Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 839df67494157eff4a908bce857c8f1f02e6732d
Time: 2018-09-05
Author: g.lemaitre58@gmail.com
File Name: imblearn/utils/estimator_checks.py
Class Name:
Method Name: check_samplers_pandas
Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 839df67494157eff4a908bce857c8f1f02e6732d
Time: 2018-09-05
Author: g.lemaitre58@gmail.com
File Name: imblearn/utils/estimator_checks.py
Class Name:
Method Name: check_target_type
Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 839df67494157eff4a908bce857c8f1f02e6732d
Time: 2018-09-05
Author: g.lemaitre58@gmail.com
File Name: imblearn/keras/_generator.py
Class Name: BalancedBatchGenerator
Method Name: _sample