MCPcopy 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
23def fit(X, Y):
24 return np.linalg.solve(X.T.dot(X), X.T.dot(Y))
25
26
27def fit_and_display(X, Y, sample, deg):

Callers 2

fit_and_displayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected