MCPcopy Create free account
hub / github.com/Anoise/WTFlib / MAPE

Function MAPE

LDPS_Graph/utils/metrics.py:27–28  ·  view source on GitHub ↗
(pred, true)

Source from the content-addressed store, hash-verified

25
26
27def MAPE(pred, true):
28 return np.mean(np.abs((pred - true) / true))
29
30
31def MSPE(pred, true):

Callers 1

metricFunction · 0.85

Calls 1

absMethod · 0.80

Tested by

no test coverage detected