e706526aef384392be0395e7c69e3795289ada11,nilearn/decoding/tests/test_same_api.py,,test_lipschitz_constant_lass_logreg,#,76
Before Change
rng = check_random_state(42)
l1_ratio = 1.
alpha = .1
n, p = 4, 10
X = rng.randn(n, p)
mask = np.ones(X.shape[1]).astype(np.bool)
grad_weight = alpha * X.shape[0] * (1. - l1_ratio)
a = logistic_derivative_lipschitz_constant(X, mask, grad_weight)
b = logistic_loss_lipschitz_constant(X)
After Change
def test_lipschitz_constant_lass_logreg():
rng = check_random_state(42)
X, y, w, mask = _make_data(rng=rng, masked=True)
l1_ratio = 1.
alpha = .1
grad_weight = alpha * X.shape[0] * (1. - l1_ratio)
a = logistic_derivative_lipschitz_constant(X, mask, grad_weight)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
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_lipschitz_constant_lass_logreg
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_lipschitz_constant_lass_logreg
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_lipschitz_constant_lass_mse
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_lipschitz_constant_lass_mse
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_lipschitz_constant_lass_logreg