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

Function MAE

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

Source from the content-addressed store, hash-verified

34
35
36def MAE(pred, true):
37 return np.mean(np.abs(pred - true))
38
39
40def MSE(pred, true):

Callers 1

metricFunction · 0.85

Calls 1

absMethod · 0.80

Tested by

no test coverage detected