Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ myr2
Function
myr2
airline/rnn.py:22–26 ·
view source on GitHub ↗
(T, Y)
Source
from the content-addressed store, hash-verified
20
return
np.random.randn(M1, M2) / np.sqrt(M1 + M2)
21
22
def
myr2(T, Y):
23
Ym = T.mean()
24
sse = (T - Y).dot(T - Y)
25
sst = (T - Ym).dot(T - Ym)
26
return
1 - sse / sst
27
28
class
RNN(object):
29
def
__init__(self, hidden_layer_sizes):
Callers
1
score
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected