MCPcopy Create free account
hub / github.com/rushter/MLAlgorithms / test_squared_error

Function test_squared_error

mla/metrics/tests/test_metrics.py:47–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46
47def test_squared_error():
48 f = metric("squared_error")
49 assert f([1], [1]) == [0]
50 assert f([3], [1]) == [4]
51
52
53def test_squared_log_error():

Callers

nothing calls this directly

Calls 1

metricFunction · 0.85

Tested by

no test coverage detected