简体   繁体   English

如何从 Bigquery 中的 Kmeans 聚类表中获取聚类数?

[英]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.

相关问题 BigQuery - 获取 BigQuery 表中的总列数 - BigQuery - Get the total number of columns in a BigQuery table 如何在不到一秒的时间内从 bigquery 表中获取单个行? - How to get individual row from bigquery table less then a second? 如何创建表编号列使用 python 到 bigquery load_table_from_dataframe - how to create table number columns use python to bigquery load_table_from_dataframe 如何从 python 中的 BigQuery 获取表名 - How can I get Table Name from BigQuery in python 如何从 bigquery-public-data 在 bigquery 中创建表 - How to create table in the bigquery from the bigquery-public-data 有没有办法从 bigquery 获取表详细信息选项卡元数据 - Is there a way to get the table details tab meta data from bigquery 如何将一个表中的列与 BigQuery 中另一个表中的数组进行比较? - How to compare column in one table with array from another table in BigQuery? Airflow - 如何从 BigQuery 表中获取数据并将其用作列表? - Airflow - how can I get data from a BigQuery table and use it as a list? 如何使用 BigQuery 从另一个表中获取包含相同项目的交易? - How do I get transactions that contains the same items from another table using BigQuery? Airflow:如何获取数据插入BigQuery表的当前日期? - Airflow: How to get the current date of when data is inserted into a BigQuery table?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM