MCPcopy Create free account
hub / github.com/AssemblyAI-Community/Machine-Learning-From-Scratch / mse

Function mse

02 Linear Regression/train.py:18–19  ·  view source on GitHub ↗
(y_test, predictions)

Source from the content-addressed store, hash-verified

16predictions = reg.predict(X_test)
17
18def mse(y_test, predictions):
19 return np.mean((y_test-predictions)**2)
20
21mse = mse(y_test, predictions)
22print(mse)

Callers 1

train.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected