Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ forward
Function
forward
ann_class/regression.py:52–58 ·
view source on GitHub ↗
(X)
Source
from the content-addressed store, hash-verified
50
# how to get the output
51
# consider the params global
52
def
forward(X):
53
Z = X.dot(W) + b
54
Z = Z * (Z > 0)
# relu
55
# Z = np.tanh(Z)
56
57
Yhat = Z.dot(V) + c
58
return
Z, Yhat
59
60
61
Callers
1
regression.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected