0c6388a26950beaeec0925e67b9bfb55ccfa2fde,nilearn/tests/test_masking.py,,test_compute_brain_mask,#,102

Before Change



    // Check that masks obtained from same FOV are the same
    img1 = Nifti1Image(np.full((9, 9, 9), np.random.rand()), np.eye(4))
    img2 = Nifti1Image(np.full((9, 9, 9), np.random.rand()), np.eye(4))

    mask_img1 = compute_brain_mask(img1)
    mask_img2 = compute_brain_mask(img2)

After Change



    // Check that masks obtained from same FOV are the same
    rng = np.random.RandomState(42)
    img1 = Nifti1Image(np.full((9, 9, 9), rng.uniform()), np.eye(4))
    img2 = Nifti1Image(np.full((9, 9, 9), rng.uniform()), np.eye(4))

    mask_img1 = compute_brain_mask(img1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: nilearn/nilearn
Commit Name: 0c6388a26950beaeec0925e67b9bfb55ccfa2fde
Time: 2020-10-06
Author: 46817791+chouhanaryan@users.noreply.github.com
File Name: nilearn/tests/test_masking.py
Class Name:
Method Name: test_compute_brain_mask


Project Name: sentinel-hub/eo-learn
Commit Name: 61f1dce4a2193e1f96adf82fd5e75e76b51aad4f
Time: 2018-10-05
Author: lubej.matic@gmail.com
File Name: features/eolearn/features/interpolation.py
Class Name: InterpolationTask
Method Name: interpolate_data


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 2dc38e78b9c84e3ea907984a2616afc9a34d9dcf
Time: 2018-05-06
Author: max.lapan@gmail.com
File Name: ch07/lib/dqn_model.py
Class Name: NoisyLinear
Method Name: __init__


Project Name: sentinel-hub/eo-learn
Commit Name: bb6569b8e314c0ecc2c3b3be8b781b94c69bcaff
Time: 2019-07-22
Author: matic.lubej@sinergise.com
File Name: geometry/eolearn/geometry/transformations.py
Class Name: VectorToRaster
Method Name: execute


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 2dc38e78b9c84e3ea907984a2616afc9a34d9dcf
Time: 2018-05-06
Author: max.lapan@gmail.com
File Name: ch07/lib/dqn_model.py
Class Name: NoisyFactorizedLinear
Method Name: __init__