530367b89414bf6570a2e1a70bc9fa71035274bc,dragonn/interpret/ism.py,,in_silico_mutagenesis,#,11

Before Change


                Xtmp=np.array(np.expand_dims(X[sample_index],axis=0))
                Xtmp[0][0][base_pos]=cur_base
                //get the logit of Xtmp
                Xtmp_logit=np.squeeze(preact_function(Xtmp),axis=0)
                mutants_expanded[sample_index][0][base_pos][base_letter]=Xtmp_logit[task_index]
    //subtract wt_expanded from mutants_expanded
    ism_vals=mutants_expanded-wt_expanded
    //For each position subtract the mean ISM score for that position from each of the 4 values

After Change


    wt_expanded=np.zeros(output_dim)
    mutants_expanded=np.zeros(output_dim)
    empty_onehot=np.zeros(output_dim[3])
    if start_pos is None:
        start_pos=0
    if end_pos is None:
        end_pos=output_dim[2] 

    /Ǚ. Iterate through all tasks, positions
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: kundajelab/dragonn
Commit Name: 530367b89414bf6570a2e1a70bc9fa71035274bc
Time: 2019-07-10
Author: annashcherbina@gmail.com
File Name: dragonn/interpret/ism.py
Class Name:
Method Name: in_silico_mutagenesis


Project Name: mozilla/TTS
Commit Name: c80225544e2fb43abbccd94148cc2045d95f8f63
Time: 2020-11-06
Author: erogol@hotmail.com
File Name: TTS/vocoder/models/wavegrad.py
Class Name: Wavegrad
Method Name: inference


Project Name: interactiveaudiolab/nussl
Commit Name: 2ffbfa3a6bd3b8de8e21a762489346054dcd9ccc
Time: 2020-03-12
Author: prem@u.northwestern.edu
File Name: nussl/separation/deep/deep_mask_estimation.py
Class Name: DeepMaskEstimation
Method Name: extract_features