fd4032bb175947cc762d6f7227caba002ba1a1d8,autokeras/hypermodel/block.py,EmbeddingBlock,build,#EmbeddingBlock#Any#Any#,564

Before Change


                output_dim=embedding_dim,
                input_length=input_node.shape[1],
                trainable=True)
        return layer(input_node)

After Change


                input_length=input_node.shape[1],
                trainable=True)
        output_node = layer(input_node)
        dropout_rate = self.dropout_rate or hp.Choice("dropout_rate",
                                                      [0.0, 0.25, 0.5],
                                                      default=0.25)
        if dropout_rate > 0:
            output_node = tf.keras.layers.Dropout(dropout_rate)(output_node)
        return output_node
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: keras-team/autokeras
Commit Name: fd4032bb175947cc762d6f7227caba002ba1a1d8
Time: 2019-10-16
Author: jhfjhfj1@gmail.com
File Name: autokeras/hypermodel/block.py
Class Name: EmbeddingBlock
Method Name: build


Project Name: jhfjhfj1/autokeras
Commit Name: 13aa31bc1a0b87d6c4b5e787c9b041ec83831c34
Time: 2020-07-31
Author: jin@tamu.edu
File Name: autokeras/blocks/reduction.py
Class Name: SpatialReduction
Method Name: build