e672c3433490ee611fa9efa210178c3c1ea7c7c4,scattering/scattering1d/tests/test_filters.py,,test_normalizing_factor,#Any#,57

Before Change


    Tests whether the computation of the normalizing factor does the correct
    job (i.e. actually normalizes the signal in l1 or l2)
    
    rng = check_random_state(random_state)
    size_signal = [2**j for j in range(5, 10)]
    norm_type = ["l1", "l2"]
    for N in size_signal:
        x = rng.randn(N) + 1j * rng.randn(N)

After Change


    Tests whether the computation of the normalizing factor does the correct
    job (i.e. actually normalizes the signal in l1 or l2)
    
    rng = np.random.RandomState(random_state)
    size_signal = [2**j for j in range(5, 10)]
    norm_type = ["l1", "l2"]
    for N in size_signal:
        x = rng.randn(N) + 1j * rng.randn(N)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 3

Instances


Project Name: kymatio/kymatio
Commit Name: e672c3433490ee611fa9efa210178c3c1ea7c7c4
Time: 2018-11-21
Author: janden@flatironinstitute.org
File Name: scattering/scattering1d/tests/test_filters.py
Class Name:
Method Name: test_normalizing_factor


Project Name: kymatio/kymatio
Commit Name: e672c3433490ee611fa9efa210178c3c1ea7c7c4
Time: 2018-11-21
Author: janden@flatironinstitute.org
File Name: scattering/scattering1d/tests/test_scattering.py
Class Name:
Method Name: test_simple_scatterings


Project Name: kymatio/kymatio
Commit Name: e672c3433490ee611fa9efa210178c3c1ea7c7c4
Time: 2018-11-21
Author: janden@flatironinstitute.org
File Name: scattering/scattering1d/tests/test_filters.py
Class Name:
Method Name: test_periodize_filter_fft


Project Name: kymatio/kymatio
Commit Name: e672c3433490ee611fa9efa210178c3c1ea7c7c4
Time: 2018-11-21
Author: janden@flatironinstitute.org
File Name: scattering/scattering1d/tests/test_utils.py
Class Name:
Method Name: test_border_indices


Project Name: kymatio/kymatio
Commit Name: e672c3433490ee611fa9efa210178c3c1ea7c7c4
Time: 2018-11-21
Author: janden@flatironinstitute.org
File Name: scattering/scattering1d/tests/test_utils.py
Class Name:
Method Name: test_subsample_fourier


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_unmask_from_to_3d_array


Project Name: kymatio/kymatio
Commit Name: e672c3433490ee611fa9efa210178c3c1ea7c7c4
Time: 2018-11-21
Author: janden@flatironinstitute.org
File Name: examples/1d/synthetic.py
Class Name:
Method Name: generate_harmonic_signal