4a84d524fc0fd8d8c372a34d8a435732b09bbd8b,deeppavlov/models/evolution/check_binary_mask.py,,check_and_correct_binary_mask,#Any#Any#,49

Before Change


        candidates = []
        cycles = list(nx.simple_cycles(directed_graph))
        n_cycles = len(cycles)
        print("Cycles: {}".format(cycles))
        // number of candidates to be the best new graph
        cycles_len = np.array([len(cycle) for cycle in cycles])
        n_candidates = np.prod(cycles_len)

After Change




def check_and_correct_binary_mask(nodes, binary_mask_):
    binary_mask = deepcopy(binary_mask_)
    binary_mask = np.array(binary_mask)
    directed_graph = get_digraph_from_binary_mask(nodes, binary_mask)
    sources, sinks = find_sources_and_sinks(directed_graph)

    while not nx.is_directed_acyclic_graph(directed_graph):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 4a84d524fc0fd8d8c372a34d8a435732b09bbd8b
Time: 2018-04-17
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/check_binary_mask.py
Class Name:
Method Name: check_and_correct_binary_mask


Project Name: uber/ludwig
Commit Name: 7d9db23a389499c2764fb850cd19f853cc3e8565
Time: 2019-08-08
Author: smiryala@uber.com
File Name: ludwig/features/image_feature.py
Class Name: ImageBaseFeature
Method Name: add_feature_data


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


Project Name: uber/ludwig
Commit Name: 5667af96dade79ef77194d519182d4989494b3a4
Time: 2019-08-25
Author: smiryala@uber.com
File Name: ludwig/features/image_feature.py
Class Name: ImageBaseFeature
Method Name: add_feature_data