我已经在顶点AI上使用AutoML创建了一个预测模型。我想使用这个模型每周进行批量预测。有没有办法安排这件事?
做出这些预测的数据存储在bigquery表中,该表每周更新一次。
发布于 2021-10-04 04:14:33
在顶点AutoML中还没有直接的自动调度,但有许多不同的方法来设置它。
首先尝试使用可用于BigQuery和顶点的客户端库的两个选项:
用途的示例
发布于 2021-10-21 00:50:07
不确定您是否正在使用顶点管道来运行预测作业,但是如果您正在运行预测作业,那么有一种方法可以调度您的管道执行,列出了here。
from kfp.v2.google.client import AIPlatformClient # noqa: F811
api_client = AIPlatformClient(project_id=PROJECT_ID, region=REGION)
# adjust time zone and cron schedule as necessary
response = api_client.create_schedule_from_job_spec(
job_spec_path="intro_pipeline.json",
schedule="2 * * * *",
time_zone="America/Los_Angeles", # change this as necessary
parameter_values={"text": "Hello world!"},
# pipeline_root=PIPELINE_ROOT # this argument is necessary if you did not specify PIPELINE_ROOT as part of the pipeline definition.
)https://stackoverflow.com/questions/69348337
复制相似问题