0c6388a26950beaeec0925e67b9bfb55ccfa2fde,nilearn/glm/tests/test_first_level.py,,test_run_glm,#,219
Before Change
def test_run_glm():
n, p, q = 100, 80, 10
X, Y = np.random.randn(p, q), np.random.randn(p, n)
// Ordinary Least Squares case
labels, results = run_glm(Y, X, "ols")
assert_array_equal(labels, np.zeros(n))
After Change
def test_run_glm():
rng = np.random.RandomState(42)
n, p, q = 100, 80, 10
X, Y = rng.standard_normal(size=(p, q)), rng.standard_normal(size=(p, n))
// Ordinary Least Squares case
labels, results = run_glm(Y, X, "ols")
assert_array_equal(labels, np.zeros(n))
In pattern: SUPERPATTERN
Frequency: 8
Non-data size: 13
Instances
Project Name: nilearn/nilearn
Commit Name: 0c6388a26950beaeec0925e67b9bfb55ccfa2fde
Time: 2020-10-06
Author: 46817791+chouhanaryan@users.noreply.github.com
File Name: nilearn/glm/tests/test_first_level.py
Class Name:
Method Name: test_run_glm
Project Name: nilearn/nilearn
Commit Name: 0c6388a26950beaeec0925e67b9bfb55ccfa2fde
Time: 2020-10-06
Author: 46817791+chouhanaryan@users.noreply.github.com
File Name: nilearn/glm/tests/test_contrasts.py
Class Name:
Method Name: test_Fcontrast
Project Name: nilearn/nilearn
Commit Name: 0c6388a26950beaeec0925e67b9bfb55ccfa2fde
Time: 2020-10-06
Author: 46817791+chouhanaryan@users.noreply.github.com
File Name: nilearn/glm/tests/test_first_level.py
Class Name:
Method Name: test_run_glm
Project Name: nilearn/nilearn
Commit Name: 0c6388a26950beaeec0925e67b9bfb55ccfa2fde
Time: 2020-10-06
Author: 46817791+chouhanaryan@users.noreply.github.com
File Name: nilearn/glm/tests/test_contrasts.py
Class Name:
Method Name: test_F_contrast_add
Project Name: nilearn/nilearn
Commit Name: 0c6388a26950beaeec0925e67b9bfb55ccfa2fde
Time: 2020-10-06
Author: 46817791+chouhanaryan@users.noreply.github.com
File Name: nilearn/glm/tests/test_contrasts.py
Class Name:
Method Name: test_t_contrast_add
Project Name: nilearn/nilearn
Commit Name: 0c6388a26950beaeec0925e67b9bfb55ccfa2fde
Time: 2020-10-06
Author: 46817791+chouhanaryan@users.noreply.github.com
File Name: nilearn/glm/tests/test_contrasts.py
Class Name:
Method Name: test_fixed_effect_contrast
Project Name: nilearn/nilearn
Commit Name: 0c6388a26950beaeec0925e67b9bfb55ccfa2fde
Time: 2020-10-06
Author: 46817791+chouhanaryan@users.noreply.github.com
File Name: nilearn/glm/tests/test_contrasts.py
Class Name:
Method Name: test_Tcontrast
Project Name: nilearn/nilearn
Commit Name: 0c6388a26950beaeec0925e67b9bfb55ccfa2fde
Time: 2020-10-06
Author: 46817791+chouhanaryan@users.noreply.github.com
File Name: nilearn/glm/tests/test_contrasts.py
Class Name:
Method Name: test_contrast_values
Project Name: nilearn/nilearn
Commit Name: 0c6388a26950beaeec0925e67b9bfb55ccfa2fde
Time: 2020-10-06
Author: 46817791+chouhanaryan@users.noreply.github.com
File Name: nilearn/glm/tests/test_contrasts.py
Class Name:
Method Name: test_contrast_mul