Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ forward
Method
forward
unsupervised_class2/vanishing.py:113–118 ·
view source on GitHub ↗
(self, X)
Source
from the content-addressed store, hash-verified
111
return
T.argmax(self.forward(X), axis=1)
112
113
def
forward(self, X):
114
Z = X
115
for
h in self.hidden_layers:
116
Z = h.forward(Z)
117
Y = T.nnet.softmax(Z.dot(self.W) + self.b)
118
return
Y
119
120
121
def
main():
Callers
2
fit
Method · 0.95
predict
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected