b1bfd16945a658d02847209e46a2ba8d72b456e1,autokeras/hypermodel/hyper_block.py,ImageBlock,build,#ImageBlock#Any#Any#,123

Before Change


        output_node = input_node

        for i in range(hp.Choice("num_layers", [1, 2, 3], default=2)):
            output_node = tf.keras.layers.Conv2D(
                hp.Choice("units_{i}".format(i=i),
                          [16, 32, 64],
                          default=32),
                hp.Choice("kernel_size_{i}".format(i=i),
                          [3, 5, 7],
                          default=3))(output_node)
        return output_node


def shape_compatible(shape1, shape2):

After Change



        if block_type == "resnet":
            output_node = ResNetBlock().build(hp, output_node)
        elif block_type == "xception":
            output_node = XceptionBlock().build(hp, output_node)
        elif block_type == "vanilla":
            output_node = ConvBlock().build(hp, output_node)
        return output_node


class ConvBlock(HyperBlock):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: keras-team/autokeras
Commit Name: b1bfd16945a658d02847209e46a2ba8d72b456e1
Time: 2019-07-01
Author: jhfjhfj1@gmail.com
File Name: autokeras/hypermodel/hyper_block.py
Class Name: ImageBlock
Method Name: build


Project Name: dmlc/gluon-cv
Commit Name: 863f19bc86cda0f785b97c39a360fbd8cbd1b0e1
Time: 2018-08-13
Author: hetong007@gmail.com
File Name: gluoncv/model_zoo/resnetv1b.py
Class Name: BasicBlockV1b
Method Name: __init__


Project Name: keras-team/autokeras
Commit Name: b31f2cafe77bf3a2f738289a89438fb72936117c
Time: 2019-07-12
Author: jhfjhfj1@gmail.com
File Name: autokeras/hypermodel/hyper_block.py
Class Name: ConvBlock
Method Name: build


Project Name: keras-team/keras
Commit Name: 14ff5175181e680d75b8d4ad6fe0d7d4dd35beff
Time: 2018-05-17
Author: me@taehoonlee.com
File Name: keras/applications/nasnet.py
Class Name:
Method Name: NASNet