93415e1b45f6accda29a7b3fa104c38dcca35394,pyod/test/test_xgbod.py,TestXGBOD,setUp,#TestXGBOD#,32

Before Change



class TestXGBOD(unittest.TestCase):
    def setUp(self):
        self.n_train = 1000
        self.n_test = 500
        self.contamination = 0.1
        self.roc_floor = 0.6
        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.clf = XGBOD()
        self.clf.fit(self.X_train, self.y_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.clf = XGBOD(random_state=42)
        self.clf.fit(self.X_train, self.y_train)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 16

Instances


Project Name: yzhao062/pyod
Commit Name: 93415e1b45f6accda29a7b3fa104c38dcca35394
Time: 2018-12-08
Author: yuezhao@cs.toronto.edu
File Name: pyod/test/test_xgbod.py
Class Name: TestXGBOD
Method Name: setUp


Project Name: yzhao062/pyod
Commit Name: 93415e1b45f6accda29a7b3fa104c38dcca35394
Time: 2018-12-08
Author: yuezhao@cs.toronto.edu
File Name: pyod/test/test_xgbod.py
Class Name: TestXGBOD
Method Name: setUp


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


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