Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ forward
Method
forward
rnn_class/mlp_parity.py:111–115 ·
view source on GitHub ↗
(self, X)
Source
from the content-addressed store, hash-verified
109
plt.show()
110
111
def
forward(self, X):
112
Z = X
113
for
h in self.hidden_layers:
114
Z = h.forward(Z)
115
return
T.nnet.softmax(Z.dot(self.W) + self.b)
116
117
def
predict(self, X):
118
pY = self.forward(X)
Callers
2
fit
Method · 0.95
predict
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected