eaed2c8a781462fa322f48425795919244a5d957,nilearn/connectivity/tests/test_embedding.py,,random_diagonal,#Any#Any#Any#Any#,147
Before Change
A diagonal matrix with the given minimal and maximal elements.
if rand_gen is None:
rand_gen = np.random.RandomState(0)
diag = rand_gen.rand(p) * (v_max - v_min) + v_min
diag[diag == np.amax(diag)] = v_max
diag[diag == np.amin(diag)] = v_min
return np.diag(diag)
After Change
A diagonal matrix with the given minimal and maximal elements.
random_state = check_random_state(random_state)
diag = random_state.rand(p) * (v_max - v_min) + v_min
diag[diag == np.amax(diag)] = v_max
diag[diag == np.amin(diag)] = v_min
return np.diag(diag)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: nilearn/nilearn
Commit Name: eaed2c8a781462fa322f48425795919244a5d957
Time: 2015-07-19
Author: sb238920@is223297.intra.cea.fr
File Name: nilearn/connectivity/tests/test_embedding.py
Class Name:
Method Name: random_diagonal
Project Name: nilearn/nilearn
Commit Name: eaed2c8a781462fa322f48425795919244a5d957
Time: 2015-07-19
Author: sb238920@is223297.intra.cea.fr
File Name: nilearn/connectivity/tests/test_embedding.py
Class Name:
Method Name: random_spd
Project Name: nilearn/nilearn
Commit Name: eaed2c8a781462fa322f48425795919244a5d957
Time: 2015-07-19
Author: sb238920@is223297.intra.cea.fr
File Name: nilearn/connectivity/tests/test_embedding.py
Class Name:
Method Name: random_non_singular