Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/rushter/MLAlgorithms
/ test_squared_log_error
Function
test_squared_log_error
mla/metrics/tests/test_metrics.py:53–57 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
51
52
53
def
test_squared_log_error():
54
f = metric(
"squared_log_error"
)
55
assert f([1], [1]) == [0]
56
assert f([3], [1]) == [np.log(2) ** 2]
57
assert f([np.exp(2) - 1], [np.exp(1) - 1]) == [1.0]
58
59
60
def
test_mean_squared_log_error():
Callers
nothing calls this directly
Calls
1
metric
Function · 0.85
Tested by
no test coverage detected