cc0764cb41e40916fcda0cccc97c87fcbf6311fe,autokeras/blocks/basic.py,DenseBlock,build,#DenseBlock#Any#Any#,114
Before Change
use_batchnorm = self.use_batchnorm
if use_batchnorm is None:
use_batchnorm = hp.Boolean("use_batchnorm", default=False)
if self.dropout is not None:
dropout = self.dropout
else:
dropout = hp.Choice("dropout", [0.0, 0.25, 0.5], default=0)
for i in range(utils.add_to_hp(self.num_layers, hp)):
units = utils.add_to_hp(self.num_units, hp, "units_{i}".format(i=i))
output_node = layers.Dense(units)(output_node)
if use_batchnorm:
After Change
if use_batchnorm:
output_node = layers.BatchNormalization()(output_node)
output_node = layers.ReLU()(output_node)
if utils.add_to_hp(self.dropout, hp) > 0:
output_node = layers.Dropout(utils.add_to_hp(self.dropout, hp))(
output_node
)

In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: keras-team/autokeras
Commit Name: cc0764cb41e40916fcda0cccc97c87fcbf6311fe
Time: 2020-11-10
Author: khomenko@brainscode.com
File Name: autokeras/blocks/basic.py
Class Name: DenseBlock
Method Name: build
Project Name: keras-team/autokeras
Commit Name: 0fbb027c8b368473e7e7fd6b05db5911cd34ce76
Time: 2021-03-18
Author: samriddhidjokestersinha@gmail.com
File Name: autokeras/blocks/basic.py
Class Name: Embedding
Method Name: build
Project Name: keras-team/autokeras
Commit Name: 48d4604e38da537503f1d5fe3afa94e4d7f708d7
Time: 2021-02-07
Author: mandalbiswadip448@gmail.com
File Name: autokeras/blocks/basic.py
Class Name: RNNBlock
Method Name: build