MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / forward

Method forward

cnn_class/cifar.py:211–218  ·  view source on GitHub ↗
(self, X)

Source from the content-addressed store, hash-verified

209 plt.show()
210
211 def forward(self, X):
212 Z = X
213 for c in self.convpool_layers:
214 Z = c.forward(Z)
215 Z = Z.flatten(ndim=2)
216 for h in self.hidden_layers:
217 Z = h.forward(Z)
218 return T.nnet.softmax(Z.dot(self.W) + self.b)
219
220 def predict(self, X):
221 pY = self.forward(X)

Callers 2

fitMethod · 0.95
predictMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected