MCPcopy 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
53def 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
60def test_mean_squared_log_error():

Callers

nothing calls this directly

Calls 1

metricFunction · 0.85

Tested by

no test coverage detected