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