68f81a02c0bef03ba40959580b2415750d2e7f87,autokeras/net_transformer.py,,to_wider_graph,#Any#,8

Before Change



def to_wider_graph(graph):
    weighted_layer_ids = graph.wide_layer_ids()
    if len(weighted_layer_ids) <= 1:
        target_id = weighted_layer_ids[0]
    else:
        target_id = weighted_layer_ids[randint(0, len(weighted_layer_ids) - 1)]

After Change



    for layer_id in wider_layers:
        layer = graph.layer_list[layer_id]
        if is_layer(layer, "Conv"):
            n_add = layer.filters
        else:
            n_add = layer.units

        graph.to_wider_model(layer_id, n_add)
    return graph

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: 68f81a02c0bef03ba40959580b2415750d2e7f87
Time: 2018-08-06
Author: jhfjhfj1@gmail.com
File Name: autokeras/net_transformer.py
Class Name:
Method Name: to_wider_graph


Project Name: keras-team/autokeras
Commit Name: 9c889d184047c2613fb9f8473f3f8a4b11bd452d
Time: 2018-05-11
Author: jin@tamu.edu
File Name: autokeras/graph.py
Class Name: Graph
Method Name: to_wider_model