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

Function myr2

airline/ann.py:15–19  ·  view source on GitHub ↗
(T, Y)

Source from the content-addressed store, hash-verified

13 return np.random.randn(M1, M2) / np.sqrt(M1 + M2)
14
15def myr2(T, Y):
16 Ym = T.mean()
17 sse = (T - Y).dot(T - Y)
18 sst = (T - Ym).dot(T - Ym)
19 return 1 - sse / sst
20
21class HiddenLayer(object):
22 def __init__(self, M1, M2, f, an_id):

Callers 1

scoreMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected