fd80a2cfcc8a04df863a57ba7592182db0db5e0e,autokeras/generator.py,DefaultClassifierGenerator,generate,#DefaultClassifierGenerator#,51

Before Change


        output_tensor = Activation("relu")(output_tensor)
        output_tensor = Dropout(constant.CONV_DROPOUT_RATE)(output_tensor)

        output_tensor = Flatten()(output_tensor)
        output_tensor = Dense(128, activation="relu")(output_tensor)
        output_tensor = Dropout(constant.DENSE_DROPOUT_RATE)(output_tensor)
        output_tensor = Dense(128, activation="relu")(output_tensor)
        output_tensor = Dropout(constant.DENSE_DROPOUT_RATE)(output_tensor)
        output_tensor = Dense(self.n_classes, activation="softmax")(output_tensor)
        return Model(inputs=input_tensor, outputs=output_tensor)

After Change


        Return the default classifier model that has been compiled.
        pool = self._get_pool_layer_func()
        conv = get_conv_layer_func(len(self._get_shape(3)))
        ave = get_ave_layer_func(len(self._get_shape(3)))

        input_tensor = Input(shape=self.input_shape)
        output_tensor = conv(32, kernel_size=self._get_shape(3), padding="same")(input_tensor)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/autokeras
Commit Name: fd80a2cfcc8a04df863a57ba7592182db0db5e0e
Time: 2018-05-07
Author: jin@tamu.edu
File Name: autokeras/generator.py
Class Name: DefaultClassifierGenerator
Method Name: generate


Project Name: mil-tokyo/webdnn
Commit Name: 51bd1f486dbb44d63abfd891b163bcebd088f9a7
Time: 2017-06-29
Author: hidaka@mi.t.u-tokyo.ac.jp
File Name: src/graph_transpiler/webdnn/frontend/chainer.py
Class Name:
Method Name: _convert_reshape