MCPcopy 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_functionFunction · 0.95
es_mnist.pyFile · 0.45

Calls 1

forwardMethod · 0.95

Tested by

no test coverage detected