bf1337afb8d75f0bbd8725c14830b8798bceb33e,autokeras/net_transformer.py,,transform,#Any#,40

Before Change


    models = []

    for index, layer in enumerate(model.layers):
        if isinstance(layer, Dense):
            models.append(to_deeper_dense_model(model, layer))
            models.append(to_wider_dense_model(model, layer))
        elif is_conv_layer(layer):
            models.append(to_deeper_conv_model(model, layer))
            models.append(to_wider_conv_model(model, layer))

    models.append(to_skip_connection_model(model))

    return models

After Change


def transform(model):
    models = []
    for i in range(constant.N_NEIGHBORS):
        operation = randint(0, 2)

        if operation == 0:
            // wider
            models.append(to_wider_model(model))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: keras-team/autokeras
Commit Name: bf1337afb8d75f0bbd8725c14830b8798bceb33e
Time: 2018-01-02
Author: jhfjhfj1@gmail.com
File Name: autokeras/net_transformer.py
Class Name:
Method Name: transform


Project Name: ContextLab/hypertools
Commit Name: d99b1ee7ec14cc3482f3d4a6eab4423ec2344248
Time: 2016-12-21
Author: andrew.heusser@gmail.com
File Name: python/examples/hypertools_demo-point_colors.py
Class Name:
Method Name:


Project Name: ContextLab/hypertools
Commit Name: c21d7f9b36fa84a6f8ff4402d9c46cfd79082d7e
Time: 2016-12-21
Author: andrew.heusser@gmail.com
File Name: python/examples/hypertools_demo-point_colors.py
Class Name:
Method Name: