d15a9563c531f0cd7ea58ddc0198dd5786f90402,deepctr/layers.py,MLP,call,#MLP#Any#,292
Before Change
if isinstance(self.activation,str):
fc = Activation(self.activation)(fc)
else:
fc = self.activation(fc,name=self.name+"act"+str(l))
fc = Dropout(1 - self.keep_prob)(fc)
deep_input = fc
After Change
if isinstance(self.activation,str):
fc = Activation(self.activation)(fc)
elif issubclass (self.activation,Layer):
fc = self.activation()(fc)
else:
raise ValueError("Invalid activation of MLP,found %s.You should use a str or a Activation Layer Class."%(self.activation))
fc = Dropout(1 - self.keep_prob)(fc)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: shenweichen/DeepCTR
Commit Name: d15a9563c531f0cd7ea58ddc0198dd5786f90402
Time: 2018-11-26
Author: last.fantasy@qq.com
File Name: deepctr/layers.py
Class Name: MLP
Method Name: call
Project Name: keras-team/keras
Commit Name: 73e563ecaf915d073d8b8fabc4a568ecddb0ea11
Time: 2016-02-25
Author: farizrahman4u@gmail.com
File Name: keras/layers/core.py
Class Name: TimeDistributedDense
Method Name: get_output
Project Name: keras-team/keras
Commit Name: a981a8c42c316831183cac7598266d577a1ea96a
Time: 2016-04-29
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: Highway
Method Name: call
Project Name: keras-team/keras
Commit Name: b001e36f189219faf0da82ce96a748912ce46212
Time: 2016-04-26
Author: braingineer@users.noreply.github.com
File Name: keras/layers/core.py
Class Name: Dense
Method Name: call