MCPcopy 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
25def forward(X, W, b):
26 return sigmoid(X.dot(W) + b)
27
28# calculate the accuracy
29def classification_rate(Y, P):

Callers 1

logistic_train.pyFile · 0.70

Calls 1

sigmoidFunction · 0.70

Tested by

no test coverage detected