9e42cb976bfadf864141265e720a1a86e8ded9a2,nilearn/decoding/tests/test_space_net.py,,test_squared_loss_path_scores,#,154

Before Change


def test_squared_loss_path_scores():
    iris = load_iris()
    X, y = iris.data, iris.target
    mask = np.ones(X.shape[1]).astype(np.bool)
    alphas = [1., .1, .01]
    test_scores, best_w, _ = squared_loss_path_scores(
        smooth_lasso_squared_loss, X, y, mask, alphas, .5,
        range(len(X)), range(len(X)), {})

After Change


def test_squared_loss_path_scores():
    iris = load_iris()
    X, y = iris.data, iris.target
    X_, mask = to_niimgs(X, [2, 2, 2])
    masker = NiftiMasker(mask)
    masker.fit_transform(X_)
    alphas = [1., .1, .01]
    test_scores, best_w, _ = squared_loss_path_scores(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: nilearn/nilearn
Commit Name: 9e42cb976bfadf864141265e720a1a86e8ded9a2
Time: 2015-07-28
Author: elvis.dohmatob@inria.fr
File Name: nilearn/decoding/tests/test_space_net.py
Class Name:
Method Name: test_squared_loss_path_scores


Project Name: nilearn/nilearn
Commit Name: 37202223957999076f3c2b13ae5d28c2c6b13df8
Time: 2015-07-28
Author: elvis.dohmatob@inria.fr
File Name: nilearn/decoding/tests/test_space_net.py
Class Name:
Method Name: test_logistic_path_scores


Project Name: nilearn/nilearn
Commit Name: 9e42cb976bfadf864141265e720a1a86e8ded9a2
Time: 2015-07-28
Author: elvis.dohmatob@inria.fr
File Name: nilearn/decoding/tests/test_space_net.py
Class Name:
Method Name: test_squared_loss_path_scores


Project Name: nilearn/nilearn
Commit Name: 37202223957999076f3c2b13ae5d28c2c6b13df8
Time: 2015-07-28
Author: elvis.dohmatob@inria.fr
File Name: nilearn/decoding/tests/test_space_net.py
Class Name:
Method Name: test_squared_loss_path_scores


Project Name: nilearn/nilearn
Commit Name: 9e42cb976bfadf864141265e720a1a86e8ded9a2
Time: 2015-07-28
Author: elvis.dohmatob@inria.fr
File Name: nilearn/decoding/tests/test_space_net.py
Class Name:
Method Name: test_logistic_path_scores