6d3e4bdc22cc89fb7ecf188ccf0479632012026f,deeppavlov/models/evolution/check_binary_mask.py,,get_graph_and_plot,#Any#Any#Any#Any#,97

Before Change


    pos = {}

    for i in range(total_nodes):
        for j in range(total_nodes):
            if binary_mask[i, j] == 1:
                dg.add_edge(i, j)
        pos[i] = 2. * np.array(number_to_type_layer(i, n_types))[::-1]

    plt.figure(figsize=(12, 12))
    nx.draw(dg, pos, node_color="b", node_size=7000, alpha=0.3)

After Change


        pos[i] = 2. * np.array(number_to_type_layer(i, n_types))[::-1]
        if i in sources:
            val_map[i] = 1.
        elif i in sinks:
            val_map[i] = 0.5
        else:
            val_map[i] = 0.

    plt.figure(figsize=(12, 12))
    values = [val_map.get(node, 0.25) for node in nodes]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 6d3e4bdc22cc89fb7ecf188ccf0479632012026f
Time: 2018-04-18
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/check_binary_mask.py
Class Name:
Method Name: get_graph_and_plot


Project Name: deepmipt/DeepPavlov
Commit Name: 4fca544205a55010e8959bb760aece5be80dc3a5
Time: 2018-06-26
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/check_binary_mask.py
Class Name:
Method Name: get_graph_and_plot


Project Name: MycroftAI/padatious
Commit Name: a1383be585a1798a3333139c4c1be149d3c5a454
Time: 2017-09-15
Author: matthew3311999@gmail.com
File Name: padatious/util.py
Class Name:
Method Name: resolve_conflicts


Project Name: dpressel/mead-baseline
Commit Name: da1e8c2de9b265dcb18256a0a087165faf138b42
Time: 2019-01-14
Author: blester125@users.noreply.github.com
File Name: python/baseline/services.py
Class Name: EncoderDecoderService
Method Name: predict