Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ fit
Function
fit
linear_regression_class/overfitting.py:23–24 ·
view source on GitHub ↗
(X, Y)
Source
from the content-addressed store, hash-verified
21
22
23
def
fit(X, Y):
24
return
np.linalg.solve(X.T.dot(X), X.T.dot(Y))
25
26
27
def
fit_and_display(X, Y, sample, deg):
Callers
2
fit_and_display
Function · 0.85
plot_train_vs_test_curves
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected