1cda66554188c4504aa94d1bcffd4cef9ee8a997,autokeras/net_transformer.py,,transform,#Any#,79

Before Change


    models = []
    layers = model.layers
    for index in range(len(layers) - 1):
        if isinstance(layers[index], tuple(WEIGHTED_LAYER_FUNC_LIST)):
            models.append(to_deeper_model(model, index))
            models.append(to_wider_model(model, index))
    return models

After Change


    conv_model = model.layers[0]
    dense_model = model.layers[1]

    for index, layer in enumerate(dense_model):
        // search dense variation
        if isinstance(layer, Dense):
            models.append(Sequential(copy_conv_model(conv_model), to_deeper_dense_model(dense_model, index)))
            models.append(Sequential(copy_conv_model(conv_model), to_wider_dense_model(dense_model, index)))

    for layer in conv_model.layers:
        // search conv variation
        if is_conv_layer(layer):
            models.append(Sequential(to_deeper_conv_model(conv_model, layer), dense_model))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: 1cda66554188c4504aa94d1bcffd4cef9ee8a997
Time: 2017-12-28
Author: jhfjhfj1@gmail.com
File Name: autokeras/net_transformer.py
Class Name:
Method Name: transform


Project Name: NifTK/NiftyNet
Commit Name: bbf4350363dc25cb9cdabb9d8fb635e96a617f32
Time: 2017-08-28
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_type.py
Class Name: SpatialImage3D
Method Name: shape