MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / forward_predict

Method forward_predict

ann_class2/dropout_theano.py:134–138  ·  view source on GitHub ↗
(self, X)

Source from the content-addressed store, hash-verified

132 return T.nnet.softmax(Z.dot(self.W) + self.b)
133
134 def forward_predict(self, X):
135 Z = X
136 for h, p in zip(self.hidden_layers, self.dropout_rates[:-1]):
137 Z = h.forward(p * Z)
138 return T.nnet.softmax((self.dropout_rates[-1] * Z).dot(self.W) + self.b)
139
140 def predict(self, X):
141 pY = self.forward_predict(X)

Callers 2

fitMethod · 0.95
predictMethod · 0.95

Calls 1

forwardMethod · 0.45

Tested by

no test coverage detected