bigframes.ml.cluster.KMeans.score#
- KMeans.score(X:DataFrame|Series|DataFrame|Series,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#k-means_modelsfor the outputs relevant to this model type.
- Parameters:
X (bigframes.dataframe.DataFrame orbigframes.series.Series orpandas.core.frame.DataFrame orpandas.core.series.Series) – DataFrame of shape (n_samples, n_features). New Data.
y (default None) – Not used, present here for API consistency by convention.
- Returns:
DataFrame of the metrics.
- Return type:
On this page