4d3ecb451fc1ea0035847f71b003b403f0ffce72,dragonn/vis/__init__.py,,plot_ism,#,225

Before Change


    
    highest_scoring_pos=np.argmax(np.abs(ism_mat),axis=1)
    zero_map=np.zeros(ism_mat.shape)
    for i in range(zero_map.shape[0]):
        zero_map[i][highest_scoring_pos[i]]=1
    product=zero_map*ism_mat
    plt.set_cmap("RdBu")
    axes[0]=plot_bases_on_ax(product,axes[0],show_ticks=False)
    axes[0].set_title(title)

After Change


    assert ism_mat.shape[1]==4

    if x.shape!=2: 
        x=x.squeeze()
    seq_len = x.shape[0]
    product=ism_mat*x
    plt.set_cmap("RdBu")
    axes[0]=plot_bases_on_ax(product,axes[0],show_ticks=False)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: kundajelab/dragonn
Commit Name: 4d3ecb451fc1ea0035847f71b003b403f0ffce72
Time: 2019-07-06
Author: annashcherbina@gmail.com
File Name: dragonn/vis/__init__.py
Class Name:
Method Name: plot_ism


Project Name: kundajelab/dragonn
Commit Name: 4d3ecb451fc1ea0035847f71b003b403f0ffce72
Time: 2019-07-06
Author: annashcherbina@gmail.com
File Name: dragonn/vis/__init__.py
Class Name:
Method Name: plot_ism


Project Name: scikit-image/scikit-image
Commit Name: b8a5e5db6c2c0ff9540d84c11c05b21fc6023ae6
Time: 2020-05-04
Author: rfezzani@gmail.com
File Name: skimage/color/colorconv.py
Class Name:
Method Name: rgba2rgb


Project Name: LCAV/pyroomacoustics
Commit Name: 400d559e4e388ecc59dfe21ce9abe83ee04da979
Time: 2020-05-31
Author: 32697085+Womac@users.noreply.github.com
File Name: pyroomacoustics/doa/music.py
Class Name: MUSIC
Method Name: _process