fec5e567f52fec1ec897431c3108c290746dcd10,examples/feat_bagging_example.py,,,#,14
Before Change
n_train = 100
n_test = 50
X_train, y_train, c_train, X_test, y_test, c_test = generate_data(
n_train=n_train, n_test=n_test, contamination=contamination)
X = np.asarray([[1, 2],
After Change
//
// X_train, y_train, X_test, y_test = generate_data(
// n_train=n_train, n_test=n_test, contamination=contamination)
mat_file = "cardio.mat"
try:
mat = loadmat(os.path.join("example_data", mat_file))
except TypeError:
print("{data_file} does not exist. Use generated data".format(
data_file=mat_file))
X, y = generate_data(train_only=True) // load data
except IOError:
print("{data_file} does not exist. Use generated data".format(
data_file=mat_file))
X, y = generate_data(train_only=True) // load data
else:
X = mat["X"]
y = mat["y"].ravel()
X_train, X_test, y_train, y_test = train_test_split(X, y,
test_size=0.4,
random_state=2)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 18
Instances
Project Name: yzhao062/pyod
Commit Name: fec5e567f52fec1ec897431c3108c290746dcd10
Time: 2018-06-03
Author: yuezhao@cs.toronto.edu
File Name: examples/feat_bagging_example.py
Class Name:
Method Name:
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: 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