Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/kwuking/TimeMixer
/ cal_accuracy
Function
cal_accuracy
utils/tools.py:138–139 ·
view source on GitHub ↗
(y_pred, y_true)
Source
from the content-addressed store, hash-verified
136
137
138
def
cal_accuracy(y_pred, y_true):
139
return
np.mean(y_pred == y_true)
Callers
2
vali
Method · 0.90
test
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected