fec5e567f52fec1ec897431c3108c290746dcd10,examples/feat_bagging_example.py,,,#,14

Before Change


    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],
                    [3, 4],
                    [5, 6]])
    w = [[0.2], [0.6]]

    average(X, w)

// TODO: place holder only

After Change


    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()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: deepchem/deepchem
Commit Name: de7f5863338af5e1f92257cb29a6ca9a1c52c473
Time: 2019-07-10
Author: peastman@stanford.edu
File Name: deepchem/metalearning/tests/test_maml.py
Class Name: TestMAML
Method Name: test_sine


Project Name: deepchem/deepchem
Commit Name: 387e650e16a5405691fb18ce05b34bd90239180e
Time: 2020-01-31
Author: peastman@stanford.edu
File Name: deepchem/metalearning/tests/test_maml.py
Class Name: TestMAML
Method Name: test_sine


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: