82efc6f939e274545910a0a8b675348255631299,deepctr/layers.py,MLP,call,#MLP#Any#,288

Before Change


        //deep_input = Dropout(1 - self.keep_prob)(deep_input)

        for l in range(len(self.hidden_size)):
            fc = Dense(self.hidden_size[l], activation=None, \
                       kernel_initializer=glorot_normal(seed=self.seed), \
                       kernel_regularizer=l2(self.l2_reg))(deep_input)
            if self.use_bn:
                fc = BatchNormalization()(fc)

            if isinstance(self.activation,str):

After Change


        deep_input = inputs

        for i in range(len(self.hidden_size)):
            fc = tf.nn.bias_add(tf.tensordot(deep_input,self.kernels[i],axes=(-1,0)),self.bias[i])
            //fc = Dense(self.hidden_size[i], activation=None, \
            //           kernel_initializer=glorot_normal(seed=self.seed), \
            //           kernel_regularizer=l2(self.l2_reg))(deep_input)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: shenweichen/DeepCTR
Commit Name: 82efc6f939e274545910a0a8b675348255631299
Time: 2018-12-07
Author: last.fantasy@qq.com
File Name: deepctr/layers.py
Class Name: MLP
Method Name: call


Project Name: shenweichen/DeepCTR
Commit Name: b787cdf9d9d1c7f500f91ccdeb87aa6d7725ae14
Time: 2019-05-18
Author: wcshen1994@163.com
File Name: deepctr/layers/interaction.py
Class Name: FGCNNLayer
Method Name: call


Project Name: shenweichen/DeepCTR
Commit Name: 8182ea386e6529a1a2294d8e2d33fc040d0cbfb2
Time: 2019-07-21
Author: wcshen1994@163.com
File Name: deepctr/inputs.py
Class Name:
Method Name: get_linear_logit