modelhub.LogisticRegression.score
score
(X, y)Returns the accuracy score from a series of true values compared to predicted values.
Parameters
X
(DataFrame) – DataFrame with the same features as the training data set.y
(SeriesBoolean) – Series with the true target variable.
Returns
a single value with the proportion of correct predicted labels.
Return type
float
note
This function queries the database.