score function in linear regression model
Reto
reto at slightlybroken.com
Mon Oct 24 01:06:44 EDT 2022
On Sun, Oct 23, 2022 at 05:11:10AM -0700, Fatemeh Heydari wrote:
> model.score(X,Y)
That will basically check how good your model is.
It takes a bunch of X values with known values, which you provide in Y
and compares the output of model.Predict(X) with the Y's and gives you
some metrics as to how good that performed.
In the case of linear regression that be R^2, the coefficient of determination
of the prediction.
Cheers,
Reto
More information about the Python-list
mailing list