bigframes.ml.decomposition.MatrixFactorization.score#
- MatrixFactorization.score(X=None, y=None) 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#matrix_factorization_models for the outputs relevant to this model type.
- Parameters:
X (bigframes.dataframe.DataFrame | bigframes.series.Series | None) – DataFrame of shape (n_samples, n_features). Test samples.
y (bigframes.dataframe.DataFrame | bigframes.series.Series | None) – DataFrame of shape (n_samples,) or (n_samples, n_outputs). True labels for X.
- Returns:
DataFrame that represents model metrics.
- Return type: