简体   繁体   中英

How to get the number of clusters from a Kmeans Cluster Table in Bigquery?

I want to get the number of clusters that Biqquery automatically created with my code below

   CREATE OR REPLACE MODEL ch09eu.london_station_clusters
        OPTIONS(model_type='kmeans',
        standardize_features = true) AS
    
   SELECT * EXCEPT(station_name)
    from ch09eu.stationstats

As per the documentation when the argument num_clusters is not explicitly passed while creating a model, BigQuery ML will choose a reasonable default based on the number of rows in the training data. Number of clusters can be found under the Details section in the model. Adding below a sample image for reference:

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM