b431b3c6629a967c4919b87e0da6567defd51419,pyod/test/test_lscp.py,TestLSCP,setUp,#TestLSCP#,34

Before Change


        self.X_train, self.y_train, self.X_test, self.y_test = generate_data(
            n_train=self.n_train, n_test=self.n_test,
            contamination=self.contamination, random_state=42)
        self.X_train, self.X_test = standardizer(self.X_train, self.X_test)
        self.detector_list = [LOF(), LOF()]
        self.clf = LSCP(self.detector_list, contamination=self.contamination)
        self.clf.fit(self.X_train)

After Change


            X, y = check_X_y(X, y)

        self.X_train, self.X_test, self.y_train, self.y_test = \
            train_test_split(X, y, test_size=0.4, random_state=42)

        self.detector_list = [LOF(), LOF()]
        self.clf = LSCP(self.detector_list)
        self.clf.fit(self.X_train)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: yzhao062/pyod
Commit Name: b431b3c6629a967c4919b87e0da6567defd51419
Time: 2019-10-15
Author: zhaoy@cmu.edu
File Name: pyod/test/test_lscp.py
Class Name: TestLSCP
Method Name: setUp


Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: d8472f4242e66f2a9117a131ded0f4b1d2fb7a92
Time: 2019-12-05
Author: g.lemaitre58@gmail.com
File Name: imblearn/ensemble/tests/test_forest.py
Class Name:
Method Name: test_balanced_random_forest_oob


Project Name: lmcinnes/umap
Commit Name: 7178ab901cbe8283288c69836af2e9aa69fd24d4
Time: 2021-02-09
Author: valerio.maggio@gmail.com
File Name: umap/tests/test_parametric_umap.py
Class Name:
Method Name: test_validation


Project Name: yzhao062/pyod
Commit Name: 9405c0b9efe36aef14a7c6fa5e93d82d54188e1e
Time: 2019-07-29
Author: zhaoy@cmu.edu
File Name: pyod/test/test_lscp.py
Class Name: TestLSCP
Method Name: setUp