[英]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我想获取 Biqquery 使用下面的代码自动创建的集群数
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.根据文档,当在创建 model 时未显式传递参数 num_clusters 时,BigQuery ML 将根据训练数据中的行数选择合理的默认值。 Number of clusters can be found under the Details section in the model. Adding below a sample image for reference:
簇的数量可以在 model 的详细信息部分找到。在下面添加示例图像以供参考:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.