87ce5a9cb09ea8ff0d7a90fdab2eeab0115d7c09,pyod/test/test_feature_bagging.py,TestFeatureBagging,setUp,#TestFeatureBagging#,31
Before Change
def setUp(self):
mat_file = "cardio.mat"
mat = loadmat(os.path.join("test_data", mat_file))
X = mat["X"]
y = mat["y"].ravel()
X_train, X_test, y_train, y_test = train_test_split(X, y,
test_size=0.4)
After Change
self.n_test = 50
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)
self.clf = FeatureBagging(contamination=self.contamination)
self.clf.fit(self.X_train)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: yzhao062/pyod
Commit Name: 87ce5a9cb09ea8ff0d7a90fdab2eeab0115d7c09
Time: 2018-06-04
Author: yuezhao@cs.toronto.edu
File Name: pyod/test/test_feature_bagging.py
Class Name: TestFeatureBagging
Method Name: setUp
Project Name: keras-team/autokeras
Commit Name: a33f747920882f6cd857bbdb50050ea360a6f366
Time: 2020-11-19
Author: jhfjhfj1@gmail.com
File Name: tests/integration_tests/functional_api_test.py
Class Name:
Method Name: test_image_blocks