b037591ca387624db8c70e146272f25f9db8bd0a,imblearn/under_sampling/_prototype_selection/_random_under_sampler.py,RandomUnderSampler,_check_X_y,#RandomUnderSampler#Any#Any#,83

Before Change



    def _check_X_y(self, X, y):
        y, binarize_y = check_target_type(y, indicate_one_vs_all=True)
        X = check_array(X, accept_sparse=["csr", "csc"], dtype=None,
                        force_all_finite=False)
        y = check_array(
            y, accept_sparse=["csr", "csc"], dtype=None, ensure_2d=False
        )
        check_consistent_length(X, y)
        return X, y, binarize_y

    def _fit_resample(self, X, y):
        random_state = check_random_state(self.random_state)

After Change



    def _check_X_y(self, X, y):
        y, binarize_y = check_target_type(y, indicate_one_vs_all=True)
        X, y = self._validate_data(
            X, y, reset=True, accept_sparse=["csr", "csc"], dtype=None,
            force_all_finite=False,
        )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: b037591ca387624db8c70e146272f25f9db8bd0a
Time: 2020-06-08
Author: g.lemaitre58@gmail.com
File Name: imblearn/under_sampling/_prototype_selection/_random_under_sampler.py
Class Name: RandomUnderSampler
Method Name: _check_X_y


Project Name: yzhao062/pyod
Commit Name: ac188ae1d993fdd970e5c550d5cb4589036aa08d
Time: 2018-12-28
Author: yuezhao@cs.toronto.edu
File Name: examples/abod_example.py
Class Name:
Method Name: visualize


Project Name: yzhao062/pyod
Commit Name: 12426e5f8fd983ce83d6cf4ef2c713a0acad9b7e
Time: 2018-12-28
Author: yuezhao@cs.toronto.edu
File Name: examples/temp_do_not_use.py
Class Name:
Method Name: visualize