Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ forward
Function
forward
ann_logistic_extra/logistic_train.py:25–26 ·
view source on GitHub ↗
(X, W, b)
Source
from the content-addressed store, hash-verified
23
return
1 / (1 + np.exp(-a))
24
25
def
forward(X, W, b):
26
return
sigmoid(X.dot(W) + b)
27
28
# calculate the accuracy
29
def
classification_rate(Y, P):
Callers
1
logistic_train.py
File · 0.70
Calls
1
sigmoid
Function · 0.70
Tested by
no test coverage detected