Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ score
Method
score
rl3/es_mnist.py:73–75 ·
view source on GitHub ↗
(self, X, Y)
Source
from the content-addressed store, hash-verified
71
return
softmax(Z.dot(self.W2) + self.b2)
72
73
def
score(self, X, Y):
74
P = np.argmax(self.forward(X), axis=1)
75
return
np.mean(Y == P)
76
77
def
get_params(self):
78
# return a flat array of parameters
Callers
2
reward_function
Function · 0.95
es_mnist.py
File · 0.45
Calls
1
forward
Method · 0.95
Tested by
no test coverage detected