Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ forward
Method
forward
airline/rnn.py:99–103 ·
view source on GitHub ↗
(self, X)
Source
from the content-addressed store, hash-verified
97
plt.show()
98
99
def
forward(self, X):
100
Z = X
101
for
h in self.hidden_layers:
102
Z = h.output(Z)
103
return
Z.dot(self.Wo) + self.bo
104
105
def
score(self, X, Y):
106
Yhat = self.predict(X)
Callers
1
fit
Method · 0.95
Calls
1
output
Method · 0.45
Tested by
no test coverage detected