MCPcopy Index your code
hub / github.com/rushter/MLAlgorithms / mean_squared_error

Function mean_squared_error

mla/metrics/metrics.py:50–51  ·  view source on GitHub ↗
(actual, predicted)

Source from the content-addressed store, hash-verified

48
49
50def mean_squared_error(actual, predicted):
51 return np.mean(squared_error(actual, predicted))
52
53
54def root_mean_squared_error(actual, predicted):

Callers 9

test_linearFunction · 0.90
test_mlpFunction · 0.90
test_knnFunction · 0.90
regressionFunction · 0.90
regressionFunction · 0.90
regressionFunction · 0.90
regressionFunction · 0.90
regressionFunction · 0.90
root_mean_squared_errorFunction · 0.85

Calls 1

squared_errorFunction · 0.85

Tested by 3

test_linearFunction · 0.72
test_mlpFunction · 0.72
test_knnFunction · 0.72