9a387157f03916b2f4f9f63647792dca39942471,autokeras/generator.py,DefaultClassifierGenerator,generate,#DefaultClassifierGenerator#,50

Before Change


        model.compile(loss=categorical_crossentropy,
                      optimizer=Adadelta(),
                      metrics=["accuracy"])
        return model


class RandomConvClassifierGenerator(ClassifierGenerator):
    A classifier generator that generates random convolutional neural networks.

After Change


        output_tensor = BatchNormalization()(output_tensor)
        output_tensor = Activation("relu")(output_tensor)

        output_tensor = pool(padding="same")(output_tensor)

        output_tensor = conv(64, kernel_size=self._get_shape(3), padding="same", activation="linear")(output_tensor)
        output_tensor = BatchNormalization()(output_tensor)
        output_tensor = Activation("relu")(output_tensor)

        output_tensor = pool(padding="same")(output_tensor)

        output_tensor = conv(64, kernel_size=self._get_shape(3), padding="same", activation="linear")(output_tensor)
        output_tensor = BatchNormalization()(output_tensor)
        output_tensor = Activation("relu")(output_tensor)

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


class RandomConvClassifierGenerator(ClassifierGenerator):
    A classifier generator that generates random convolutional neural networks.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: keras-team/autokeras
Commit Name: 9a387157f03916b2f4f9f63647792dca39942471
Time: 2018-03-29
Author: jin@tamu.edu
File Name: autokeras/generator.py
Class Name: DefaultClassifierGenerator
Method Name: generate


Project Name: facebookresearch/pytext
Commit Name: 8bc826d6c536c5e6df5ec527b8783af4b5b57e73
Time: 2019-08-05
Author: shreyd@fb.com
File Name: pytext/models/representations/deepcnn.py
Class Name: DeepCNNRepresentation
Method Name: forward