MCPcopy Create free account
hub / github.com/BorealisAI/scaleformer / MAPE

Function MAPE

utils/metrics.py:48–49  ·  view source on GitHub ↗
(pred, true)

Source from the content-addressed store, hash-verified

46
47
48def MAPE(pred, true):
49 return np.mean(np.abs((pred - true) / true))
50
51
52def MSPE(pred, true):

Callers 1

metricFunction · 0.85

Calls 1

absMethod · 0.80

Tested by

no test coverage detected