[英]How to get the number of clusters from a Kmeans Cluster Table in Bigquery?
我想獲取 Biqquery 使用下面的代碼自動創建的集群數
CREATE OR REPLACE MODEL ch09eu.london_station_clusters
OPTIONS(model_type='kmeans',
standardize_features = true) AS
SELECT * EXCEPT(station_name)
from ch09eu.stationstats
根據文檔,當在創建 model 時未顯式傳遞參數 num_clusters 時,BigQuery ML 將根據訓練數據中的行數選擇合理的默認值。 簇的數量可以在 model 的詳細信息部分找到。在下面添加示例圖像以供參考:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.