Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/rushter/MLAlgorithms
/ test_absolute_error
Function
test_absolute_error
mla/metrics/tests/test_metrics.py:35–38 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
33
34
35
def
test_absolute_error():
36
f = metric(
"absolute_error"
)
37
assert f([3], [5]) == [2]
38
assert f([-1], [-4]) == [3]
39
40
41
def
test_mean_absolute_error():
Callers
nothing calls this directly
Calls
1
metric
Function · 0.85
Tested by
no test coverage detected