624117eaac16a0674201471119d940ccd81b1771,GPy/mappings/mlp.py,MLP,f,#MLP#Any#,22
Before Change
def f(self, X):
N, D = X.shape
activations = np.tanh(np.dot(X,self.W1) + self.b1)
self.out = np.dot(self.activations,self.W2) + self.b2
return self.output_fn(self.out)
def update_gradients(self, dL_dF, X):
activations = np.tanh(np.dot(X,self.W1) + self.b1)
After Change
def f(self, X):
layer1 = np.dot(X, self.W1) + self.b1
activations = np.tanh(layer1)
return np.dot(activations, self.W2) + self.b2
def update_gradients(self, dL_dF, X):
layer1 = np.dot(X,self.W1) + self.b1
activations = np.tanh(layer1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: SheffieldML/GPy
Commit Name: 624117eaac16a0674201471119d940ccd81b1771
Time: 2015-03-26
Author: james.hensman@gmail.com
File Name: GPy/mappings/mlp.py
Class Name: MLP
Method Name: f
Project Name: stanfordnlp/stanza
Commit Name: a784e98ebeb41f0001768cd02acf3301c7e50f0d
Time: 2018-08-15
Author: qipeng@noreply.github.com
File Name: models/common/hlstm.py
Class Name: HLSTMCell
Method Name: forward
Project Name: facebookresearch/pytext
Commit Name: 0e4c63562cca4d55cfe04b70f49b42c07336003e
Time: 2020-03-10
Author: kushall@fb.com
File Name: pytext/models/representations/huggingface_bert_sentence_encoder.py
Class Name: HuggingFaceBertSentenceEncoder
Method Name: _encoder