MCPcopy 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
138def cal_accuracy(y_pred, y_true):
139 return np.mean(y_pred == y_true)

Callers 2

valiMethod · 0.90
testMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected