【发布时间】:2020-07-03 06:46:45
【问题描述】:
我们已经在 Google Cloud AutoML(我们非常喜欢的一个工具)中训练了一个模型并成功将其导出到 GCS,然后使用以下命令在 BigQuery 中创建了模型:
create or replace model my_dataset.my_bq_ml_model
options(model_type='tensorflow',
model_path='my gcs path to exported tensorflow model'))
但是,当我们使用 BigQueryML 尝试使用模型运行一些预测时,我们不确定如何将模型使用的多个特征格式化为导出的 Tensorflow 模型在 BigQuery 中接受的单个“输入”字符串。
select *
from ml.predict(model my_project.my_dataset.my_bq_ml_model,
(
select 'How do we format this?' as inputs
from my_rows_to_predict
))
有人做过吗?
这类似于这个问题,它仍然是开放的: Multi-column input to ML.PREDICT for a TensorFlow model in BigQuery ML
谢谢大家。
【问题讨论】:
标签: tensorflow machine-learning google-cloud-platform google-bigquery google-cloud-automl