48a1b8b3cafc4318de3b9ad517958756696126c3,brainiak/utils/fmrisim.py,,_generate_noise_temporal_phys,#Any#Any#Any#,1581

Before Change



    

    noise_phys = []  // Preset
    resp_phase = (np.random.rand(1) * 2 * np.pi)[0]
    heart_phase = (np.random.rand(1) * 2 * np.pi)[0]
    for tr_counter in timepoints:

After Change



    // Calculate the radians for each variable at this
    // given TR
    resp_radians = np.multiply(timepoints, resp_rate) + resp_phase
    heart_radians = np.multiply(timepoints, heart_rate) + heart_phase

    // Combine the two types of noise and append
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: brainiak/brainiak
Commit Name: 48a1b8b3cafc4318de3b9ad517958756696126c3
Time: 2018-09-02
Author: cameron.ellis@yale.edu
File Name: brainiak/utils/fmrisim.py
Class Name:
Method Name: _generate_noise_temporal_phys


Project Name: google-research/google-research
Commit Name: 2a11d3f0bad2430b81628fa6cb0a6301d099d77d
Time: 2020-12-11
Author: xingyousong@google.com
File Name: performer/fast_attention/tensorflow/fast_attention_test.py
Class Name: TransformerLayersTest
Method Name: test_softmax_noncausal_attention_block_output


Project Name: HyperGAN/HyperGAN
Commit Name: c703c18798e0aa8abbed9ca4ad97039d45637838
Time: 2019-11-02
Author: mikkel@255bits.com
File Name: hypergan/optimizers/experimental/competitive2_optimizer.py
Class Name: CompetitiveOptimizer
Method Name: dot