b46079a21209220f92ee274f4498e120e9a1b762,mlxtend/regressor/tests/test_stacking_regression.py,,test_weight_ones,#,88

Before Change



    stregr.fit(X1, y, sample_weight=np.ones(40)).predict(X1)
    mse = 0.21
    got = np.mean((stregr.predict(X1) - y) ** 2)
    assert round(got, 2) == mse


@raises(TypeError)

After Change


                               meta_regressor=svr_rbf)
    pred1 = stregr.fit(X1, y).predict(X1)
    pred2 = stregr.fit(X1, y, sample_weight=np.ones(40)).predict(X1)
    maxdiff = np.max(np.abs(pred1 - pred2))
    assert maxdiff < 1e-3, "max diff is %.4f" % maxdiff

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: rasbt/mlxtend
Commit Name: b46079a21209220f92ee274f4498e120e9a1b762
Time: 2018-09-23
Author: kmori05@gmail.com
File Name: mlxtend/regressor/tests/test_stacking_regression.py
Class Name:
Method Name: test_weight_ones


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: f09a705de11b1b6ade4a7353f238e8f379d15ce5
Time: 2017-12-05
Author: max.lapan@gmail.com
File Name: ch09/04_pong_pg.py
Class Name:
Method Name:


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: e70bdb2d089ae283781c45b8d97963823a984baa
Time: 2017-12-15
Author: max.lapan@gmail.com
File Name: ch10/00_pong_pg.py
Class Name:
Method Name: