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


                output_dim=embedding_dim,
                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: 3

Non-data size: 6

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: stellargraph/stellargraph
Commit Name: b7b39561fbfe4f3b9b03c3497ea4efd8cbd4366d
Time: 2019-01-20
Author: wangzhen263@gmail.com
File Name: stellargraph/layer/gcn.py
Class Name: GCN
Method Name: __call__