bigframes.ml.linear_model.LinearRegression.score#

LinearRegression.score(X: DataFrame | Series | DataFrame | Series, y: DataFrame | Series | DataFrame | Series) DataFrame[source]#

Calculate evaluation metrics of the model.

Note

Output matches that of the BigQuery ML.EVALUATE function. See: https://cloud.google.com/bigquery/docs/reference/standard-sql/bigqueryml-syntax-evaluate#regression_models for the outputs relevant to this model type.

Parameters:
Returns:

A DataFrame of the evaluation result.

Return type:

bigframes.dataframe.DataFrame