e8f02e56f356dfecd5d7bb271f2fa54deb71ee00,tests/meta/test_adaptive_random_forest_regressor.py,,test_adaptive_random_forest_regressor_drift_detection_coverage,#,139

Before Change


                y = np.asarray([np.random.normal(loc=-5, scale=1.0)])
        elif cnt < 500:  // First abrupt drift
            if np.sum(x) > threshold:
                y = np.asarray([np.random.normal(loc=10, scale=1.0)])
            else:
                y = np.asarray([np.random.normal(loc=-10, scale=1.0)])
        else:  // Second abrupt drift

After Change


    error1 = mean_absolute_error(y_true, y_pred1)
    error2 = mean_absolute_error(y_true, y_pred2)

    assert np.isclose(round(error1, 2), expected_error1)
    assert np.isclose(round(error2, 2), expected_error2)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scikit-multiflow/scikit-multiflow
Commit Name: e8f02e56f356dfecd5d7bb271f2fa54deb71ee00
Time: 2020-04-30
Author: saulomastelini@gmail.com
File Name: tests/meta/test_adaptive_random_forest_regressor.py
Class Name:
Method Name: test_adaptive_random_forest_regressor_drift_detection_coverage


Project Name: chainer/chainer
Commit Name: 488f5cc21c564bf017994d63a782c19b2c759bb1
Time: 2019-09-06
Author: nc.jky0@gmail.com
File Name: chainer/initializers/normal.py
Class Name: Normal
Method Name: __call__


Project Name: datascienceinc/Skater
Commit Name: a0a2a65ddbcd5e5f27ca02bf0607f718e415d370
Time: 2017-03-20
Author: aikramer2@gmail.com
File Name: pyinterpret/tests/test_data.py
Class Name: TestData
Method Name: test_1D_numpy_array