bigframes.ml.ensemble.RandomForestRegressor.score#
- RandomForestRegressor.score(X: DataFrame | Series | DataFrame | Series, y: DataFrame | Series | DataFrame | Series)[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:
X (bigframes.dataframe.DataFrame or bigframes.series.Series) – A BigQuery DataFrame as evaluation data.
y (bigframes.dataframe.DataFrame or bigframes.series.Series) – A BigQuery DataFrame as evaluation labels.
- Returns:
The DataFrame as evaluation result.
- Return type: