9a387157f03916b2f4f9f63647792dca39942471,autokeras/generator.py,DefaultClassifierGenerator,generate,#DefaultClassifierGenerator#,50
Before Change
output_tensor = Dense(128, activation="relu")(output_tensor)
output_tensor = Dense(self.n_classes, activation="softmax")(output_tensor)
model = Model(input_tensor, output_tensor)
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 = 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.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: jhfjhfj1/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: rusty1s/pytorch_geometric
Commit Name: 90e643c7a3727afef2caf932281e6ae91d62aac5
Time: 2020-06-07
Author: matthias.fey@tu-dortmund.de
File Name: examples/cluster_gcn_ppi.py
Class Name: Net
Method Name: forward