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

Method score

airline/rnn.py:105–107  ·  view source on GitHub ↗
(self, X, Y)

Source from the content-addressed store, hash-verified

103 return Z.dot(self.Wo) + self.bo
104
105 def score(self, X, Y):
106 Yhat = self.predict(X)
107 return myr2(Y, Yhat)
108
109 def predict(self, X):
110 N = len(X)

Callers 1

rnn.pyFile · 0.45

Calls 2

predictMethod · 0.95
myr2Function · 0.70

Tested by

no test coverage detected