Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
16
predictions = reg.predict(X_test)
17
18
def
mse(y_test, predictions):
19
return
np.mean((y_test-predictions)**2)
20
21
mse = mse(y_test, predictions)
22
print(mse)
Callers
1
train.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected