e706526aef384392be0395e7c69e3795289ada11,nilearn/decoding/tests/test_same_api.py,,test_smoothlasso_and_tvl1_same_for_pure_l1,#Any#Any#,89

Before Change



    X, y, _ = _make_data()
    alpha = .1
    mask = np.ones(X.shape[1]).astype(np.bool)

    // results should be exactly the same for pure lasso
    a = tvl1_solver(X, y, alpha, 1., mask, loss="mse", max_iter=max_iter)[0]

After Change



    X, y, _, mask = _make_data()
    alpha = .1
    unmasked_X = np.rollaxis(X, -1, start=0)
    unmasked_X = np.array([x[mask] for x in unmasked_X])

    // results should be exactly the same for pure lasso
    a = tvl1_solver(unmasked_X, y, alpha, 1., mask, loss="mse",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: nilearn/nilearn
Commit Name: e706526aef384392be0395e7c69e3795289ada11
Time: 2015-07-28
Author: elvis.dohmatob@inria.fr
File Name: nilearn/decoding/tests/test_same_api.py
Class Name:
Method Name: test_smoothlasso_and_tvl1_same_for_pure_l1


Project Name: nilearn/nilearn
Commit Name: 56f63c1ee1e1bf5d06550373b39caa085fdc9f12
Time: 2015-07-28
Author: elvis.dohmatob@inria.fr
File Name: nilearn/decoding/tests/test_same_api.py
Class Name:
Method Name: test_smoothlasso_and_tvl1_same_for_pure_l1


Project Name: nipy/dipy
Commit Name: a17b669606cdc5c16fb823b5f00abcacf6a68d70
Time: 2012-10-24
Author: mrbago@gmail.com
File Name: dipy/reconst/dti.py
Class Name: TensorFit
Method Name: odf