MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / score

Method score

rl3/flappy2envs.py:101–103  ·  view source on GitHub ↗
(self, X, Y)

Source from the content-addressed store, hash-verified

99 return np.argmax(p)
100
101 def score(self, X, Y):
102 P = np.argmax(self.forward(X), axis=1)
103 return np.mean(Y == P)
104
105 def get_params(self):
106 # return a flat array of parameters

Callers

nothing calls this directly

Calls 1

forwardMethod · 0.95

Tested by

no test coverage detected