Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
48
def
MAPE(pred, true):
49
return
np.mean(np.abs((pred - true) / true))
50
51
52
def
MSPE(pred, true):
Callers
1
metric
Function · 0.85
Calls
1
abs
Method · 0.80
Tested by
no test coverage detected