Agent Platform 模型评估笔记本教程

本文档包含可用代理平台模型评估笔记本教程的列表。这些端到端教程可帮助您上手使用 Agent Platform 模型评估,并为您提供有关如何实现特定项目的建议。

笔记本可以在多种环境中托管。您可以使用 Colaboratory (Colab)Colab EnterpriseAgent Platform Workbench 等服务在云中运行它们。您也可以从 GitHub 下载笔记本,然后在本地机器或本地网络中的 JupyterLab 实现上运行它们。

Colab

如需在 Colab 中打开笔记本教程,请点击笔记本列表中的 Colab 链接。Colab 会创建一个具有所有所需依赖项的虚拟机实例,启动 Colab 环境并加载笔记本。

Colab Enterprise

如需在 Colab Enterprise 中打开笔记本教程,请执行以下操作:

  1. 设置 Google Cloud 项目并启用所需的 API。
  2. 点击笔记本列表中的 Colab Enterprise 链接。Colab Enterprise 会加载笔记本。

Agent Platform Workbench

如需在 Agent Platform Workbench 中打开笔记本教程,请执行以下操作:

  1. 创建 Agent Platform Workbench 实例
  2. 点击笔记本列表中的 Vertex AI Workbench 链接。
  3. 选择一个处于活跃状态的 Agent Platform Workbench 实例。如果您没有任何实例在运行,请选择一个实例,然后点击启动。在实例启动后,再次选择该实例。
  4. 点击部署
  5. Confirm deployment to notebook server(确认部署到笔记本服务器)页面上,选择确认。 Agent Platform Workbench 会加载笔记本。
  6. 选择内核对话框中,选择 Python 3,然后点击选择

GitHub

如需从 GitHub 下载笔记本教程,请执行以下操作:

  1. 点击笔记本列表中的 GitHub 链接。
  2. 在 GitHub 中,点击 下载原始文件按钮。
  3. 根据对话框中的提示完成操作,以下载笔记本。

笔记本列表

服务 说明 打开方式
表格数据分类
AutoML 表格训练和预测
了解如何基于表格数据集对 AutoML 模型进行训练并使用模型进行预测。 详细了解表格数据分类

教程步骤

  • 创建 Agent Platform 模型训练作业。
  • 训练 AutoML 表格模型。
  • 将模型资源部署到服务端点资源。
  • 发送数据以进行预测。
  • 取消部署模型资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
从图片分类模型获取预测结果
适用于批量预测的 AutoML 训练图片分类模型
在本教程中,您将通过 Python 脚本创建一个 AutoML 图片分类模型,然后使用 Vertex SDK 执行批量预测。 详细了解从图片分类模型获取预测结果

教程步骤

  • 创建 Vertex 数据集资源。
  • 训练模型。
  • 查看模型评估。
  • 进行批量预测。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
从图片分类模型获取预测结果
适用于在线预测的 AutoML 训练图片分类模型
在本教程中,您将使用 Vertex SDK 通过 Python 脚本创建一个 AutoML 图片分类模型并进行部署,以执行在线预测。 详细了解从图片分类模型获取预测结果

教程步骤

  • 创建 Vertex Dataset 资源。
  • 训练模型。
  • 查看模型评估。
  • Model 资源部署到服务 Endpoint 资源。
  • 进行预测。
  • 取消部署 Model
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
AutoML
用于导出到边缘的 AutoML 训练图片对象检测模型
在本教程中,您将使用 Vertex SDK 通过 Python 脚本创建一个 AutoML 图片对象检测模型,然后将该模型导出为 TFLite 格式的 Edge 模型。

教程步骤

  • 创建 Vertex 数据集资源。
  • 训练模型。
  • 将边缘模型从模型资源导出到 Cloud Storage。
  • 在本地下载模型。
  • 进行本地预测。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
图片数据的对象检测
适用于在线预测的 AutoML 训练图片对象检测模型
在本教程中,您将创建一个 AutoML 图片对象检测模型,并使用 Agent Platform SDK 通过 Python 脚本进行部署以进行在线预测。 详细了解图片数据的对象检测

教程步骤

  • 创建 Agent Platform 数据集资源。
  • 训练模型。
  • 查看模型评估。
  • 将模型资源部署到服务端点资源。
  • 进行预测。
  • 取消部署模型。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
适用于 E2E AutoML 的表格工作流
AutoML 表格工作流流水线
了解如何使用从 Google Cloud 流水线组件下载的 Agent Platform Pipelines 创建两个回归模型。 详细了解适用于 E2E AutoML 的表格工作流

教程步骤

  • 创建一个训练流水线,减少默认搜索空间,以此节省时间。
  • 创建另一个训练流水线,让其重复利用先前流水线获得的架构搜索结果,以此节省时间。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
AutoML 训练
开始进行 AutoML 训练
了解如何通过 Agent Platform 使用 AutoML 进行训练。 详细了解 AutoML 训练

教程步骤

  • 训练图片模型
  • 将图片模型作为 Edge 模型导出
  • 训练表格模型
  • 将表格模型作为 Cloud 模型导出
  • 训练文本模型
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
适用于表格数据的分层预测
适用于批量预测的 Agent Platform AutoML 训练分层预测
在本教程中,您将使用 Agent Platform SDK for Python 创建一个 AutoML 分层预测模型并进行部署,以执行批量预测。 详细了解适用于表格数据的分层预测

教程步骤

  • 创建 Agent Platform TimeSeriesDataset 资源。
  • 训练模型。
  • 查看模型评估。
  • 进行批量预测。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
图片数据的对象检测
适用于批量预测的 AutoML 训练图片对象检测模型
在本教程中,您将通过 Python 脚本创建一个 AutoML 图片对象检测模型,然后使用 Agent Platform SDK for Python 执行批量预测。 详细了解图片数据的对象检测

教程步骤

  • 创建 Vertex 数据集资源。
  • 训练模型。
  • 查看模型评估。
  • 进行批量预测。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
使用 AutoML 进行预测
适用于批量预测的 AutoML 表格预测模型
了解如何通过 Python 脚本创建 AutoML 表格预测模型,然后使用 Agent Platform SDK 生成批量预测。 详细了解使用 AutoML 进行预测

教程步骤

  • 创建 Agent Platform 数据集资源。
  • 训练 AutoML 表格预测模型资源。
  • 获取模型资源的评估指标。
  • 进行批量预测。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
表格数据的回归
适用于通过 BigQuery 进行批量预测的 AutoML 训练表格回归模型
了解如何使用 Agent Platform SDK for Python 创建一个 AutoML 表格回归模型并进行部署,以执行批量预测。 详细了解表格数据的回归

教程步骤

  • 创建 Agent Platform 数据集资源。
  • 训练 AutoML 表格回归模型资源。
  • 获取模型资源的评估指标。
  • 进行批量预测。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
表格数据的回归
适用于通过 BigQuery 进行在线预测的 AutoML 训练表格回归模型
了解如何使用 Agent Platform SDK 通过 Python 脚本创建 AutoML 表格回归模型并进行部署,以执行在线预测。 详细了解表格数据的回归

教程步骤

  • 创建 Vertex 数据集资源。
  • 训练模型。
  • 查看模型评估。
  • 将模型资源部署到服务端点资源。
  • 进行预测。
  • 取消部署模型。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
BigQuery ML
开始进行 BigQuery ML 训练
了解如何通过 Agent Platform 使用 BigQuery ML 进行训练。 详细了解 BigQuery ML

教程步骤

  • 在项目中创建本地 BigQuery 表
  • 训练 BigQuery ML 模型
  • 评估 BigQuery ML 模型
  • 将 BigQuery ML 模型作为 Cloud 模型导出
  • 将导出的模型作为 Agent Platform 模型资源上传
  • 使用 Agent Platform Vizier 对 BigQuery ML 模型进行超参数调优
  • 自动将 BigQuery ML 模型注册到 Agent Platform Model Registry
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
自定义训练
Agent Platform Inference
使用 FastAPI 和 Agent Platform 自定义容器服务部署鸢尾花检测模型
了解如何在 Agent Platform 上创建、部署和提供自定义分类模型。 详细了解自定义训练。 详细了解 Agent Platform 推理

教程步骤

  • 训练一个使用花朵测量值作为输入来预测鸢尾花类型的模型。
  • 保存模型及其序列化预处理器。
  • 构建一个 FastAPI 服务器来处理预测和健康检查。
  • 使用模型工件构建自定义容器。
  • 将自定义容器上传并部署到 Agent Platform 端点。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Vertex AI Training
基于 BigQuery 数据训练 TensorFlow 模型
了解如何使用 Python 版 Agent Platform SDK 通过 Python 脚本在 Docker 容器中创建自定义训练的模型,然后通过发送数据从已部署的模型获取预测结果。 详细了解 Vertex AI Training

教程步骤

  • 创建用于训练模型的 Agent Platform 自定义 TrainingPipeline
  • 训练 TensorFlow 模型。
  • Model 资源部署到服务 Endpoint 资源。
  • 进行预测。
  • 取消部署 Model 资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
自定义训练
使用自定义容器映像进行自定义训练,并将模型自动上传到 Agent Platform Model Registry
在本教程中,您将使用机器学习模型自定义容器映像方法在 Agent Platform 中进行自定义训练。 详细了解自定义训练

教程步骤

  • 创建 Agent Platform 自定义作业来训练模型。
  • 使用自定义容器训练和注册 TensorFlow 模型。
  • 列出已在 Agent Platform Model Registry 中注册的模型。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Cloud Profiler
使用 Cloud Profiler 分析模型训练性能
了解如何为自定义训练作业启用 Cloud Profiler。 详细了解 Cloud Profiler

教程步骤

  • 设置服务账号和 Cloud Storage 存储桶
  • 创建 Agent Platform TensorBoard 实例
  • 创建并运行自定义训练作业
  • 查看 Cloud Profiler 信息中心
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
自定义训练
Vertex AI Training for XGBoost 使用入门
了解如何使用 Vertex AI Training 训练 XGBoost 自定义模型。 详细了解自定义训练

教程步骤

  • 使用 Python 软件包进行训练。
  • 报告超参数调优的准确性。
  • 使用 Cloud StorageFuse 将模型制品保存到 Cloud Storage。
  • 创建 Agent Platform 模型资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
跨多个部署的共享资源
端点和共享虚拟机使用入门
了解如何使用部署资源池来部署模型。 详细了解跨多个部署的共享资源

教程步骤

  • 将预训练的图片分类模型作为 Model 资源(模型 A)上传。
  • 将预训练的文本句子编码器模型作为 Model 资源(模型 B)上传。
  • 创建共享虚拟机部署资源池。
  • 列出共享虚拟机部署资源池。
  • 创建两个 Endpoint 资源。
  • 使用部署资源池将第一个模型(模型 A)部署到第一个 Endpoint 资源。
  • 使用部署资源池将第二个模型(模型 B)部署到第二个 Endpoint 资源。
  • 使用部署的第一个模型(模型 A)发出预测请求。
  • 使用部署的第二个模型(模型 B)发出预测请求。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
自定义训练
Agent Platform Batch Prediction
自定义训练和批量预测
了解如何使用 Vertex AI Training 创建自定义训练的模型,并使用 Agent Platform Batch Prediction 对训练的模型执行批量预测。 详细了解自定义训练。 详细了解 Agent Platform Batch Prediction

教程步骤

  • 创建一个 Agent Platform 自定义作业来训练 TensorFlow 模型。
  • 将经过训练的模型制品作为模型资源上传。
  • 进行批量预测。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
自定义训练
Agent Platform Inference
自定义训练和在线预测
了解如何使用 Vertex AI Training 通过 Python 脚本在 Docker 容器中创建自定义训练的模型,并了解如何使用 Agent Platform Inference 通过发送数据对已部署的模型执行预测。 详细了解自定义训练。 详细了解 Agent Platform 推理

教程步骤

  • 创建一个 Agent Platform 自定义作业来训练 TensorFlow 模型。
  • 将经过训练的模型制品上传到 Model 资源。
  • 创建服务 Endpoint 资源。
  • Model 资源部署到服务 Endpoint 资源。
  • 进行预测。
  • 取消部署 Model 资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
BigQuery 数据集
面向 BigQuery 用户的代理平台
开始使用 BigQuery 数据集
了解如何使用 BigQuery 作为数据集以通过 Agent Platform 进行训练。 详细了解 BigQuery 数据集。 详细了解适用于 BigQuery 用户的代理平台

教程步骤

  • 基于兼容 AutoML 训练的 BigQuery 表创建 Agent Platform 数据集资源。
  • 将数据集的副本从 BigQuery 提取到 Cloud Storage 中的 CSV 文件 - 兼容 AutoML 训练或自定义训练。
  • 将行数据从 BigQuery 数据集选择到 Pandas DataFrame - 兼容自定义训练。
  • 将行数据从 BigQuery 数据集选择到 tf.data.Dataset - 兼容 TensorFlow 模型自定义训练。
  • 将行数据从提取的 CSV 文件选择到 tf.data.Dataset - 兼容 TensorFlow 模型自定义训练。
  • 基于 CSV 文件创建 BigQuery 数据集。
  • 将数据从 BigQuery 表提取到兼容 XGBoost 模型自定义训练的 DMatrix。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Experiments
Vertex ML Metadata
构建 Agent Platform 实验沿袭以进行自定义训练
了解如何在 Agent Platform 实验中集成预处理代码。 详细了解 Agent Platform Experiments。 详细了解 Vertex ML Metadata

教程步骤

  • 执行数据预处理模块
  • 创建数据集制品
  • 记录参数
  • 执行模型训练模块
  • 记录参数
  • 创建模型制品
  • 将跟踪沿袭分配给数据集、模型和参数
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Experiments
跟踪本地训练的模型的参数和指标
了解如何使用 Agent Platform Experiments 比较和评估模型实验。 详细了解 Agent Platform Experiments

教程步骤

  • 记录模型参数
  • 将每个周期的损失和指标记录到 Agent Platform TensorBoard
  • 记录评估指标
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Experiments
Agent Platform Pipelines
使用 Agent Platform Experiments 比较流水线运行
了解如何使用 Agent Platform Experiments 记录流水线作业,然后比较不同的流水线作业。 详细了解 Agent Platform Experiments。 详细了解 Agent Platform Pipelines

教程步骤

  • 规范化训练组件
  • 构建训练流水线
  • 运行多个流水线作业并记录其结果
  • 比较不同的流水线作业
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform TensorBoard
删除 Agent Platform TensorBoard 中过时的实验
了解如何删除过时的 Agent Platform TensorBoard 实验以避免不必要的存储费用。 详细了解 Agent Platform TensorBoard

教程步骤

  • 如何删除带有预定义键值标签对 的 TB 实验
  • 如何删除在 create_time 之前创建的 TB 实验
  • 如何删除在 update_time 之前创建的 TB 实验
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Experiments
自定义训练自动日志记录 - 本地脚本
了解如何利用与 Agent Platform Experiments 的集成来自动记录在 Vertex AI Training 上运行的机器学习实验的参数和指标。

教程步骤

  • 通过脚本规范化模型实验
  • 使用本地脚本通过 Vertex AI Training 运行模型训练
  • 在 Agent Platform Experiments 中查看机器学习实验的参数和指标
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Experiments
Vertex ML Metadata
自定义训练
开始使用 Agent Platform Experiments
了解如何在通过 Agent Platform 进行训练时使用 Agent Platform Experiments。 详细了解 Agent Platform Experiments。 详细了解 Vertex ML Metadata。 详细了解自定义训练

教程步骤

  • 本地(笔记本)训练
  • 创建实验。
  • 在实验中创建第一次运行。
  • 记录参数和指标。
  • 创建制品沿袭。
  • 直观呈现实验结果。
  • 执行第二次运行。
  • 比较实验中的两次运行。
  • Cloud (Agent Platform) 训练
  • 在训练脚本中
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Experiments
自动日志记录
了解如何使用 Agent 平台自动日志记录。

教程步骤

  • 在 Agent Platform SDK 中启用自动日志记录功能。
  • 训练 scikitlearn 模型,并查看在不设置实验运行的情况下,产生的实验运行的指标和参数是否自动记录到 Agent Platform Experiments。
  • 训练 TensorFlow 模型,并通过使用 aiplatform.start_run()aiplatform.end_run() 手动设置实验运行,检查自动记录到 Agent Platform Experiments 的指标和参数。
  • 在 Agent Platform SDK 中停用自动日志记录功能,训练一个 PyTorch 模型并检查是否没有记录任何参数或指标。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
表格数据的分类
Vertex Explainable AI
适用于 AutoML 表格二元分类模型的批量解释
了解如何使用 AutoML 通过 Python 脚本创建表格二元分类模型,然后了解如何使用 Agent Platform Batch Prediction 进行预测并提供解释。 详细了解表格数据分类。 详细了解 Vertex Explainable AI

教程步骤

  • 创建 Agent Platform 托管数据集资源。
  • 训练 AutoML 表格二元分类模型。
  • 查看经过训练的模型的评估指标。
  • 发出具有可解释性的批量预测请求。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
表格数据的分类
Vertex Explainable AI
适用于在线解释的 AutoML 训练表格分类模型
了解如何使用 AutoML 通过 Python 脚本创建表格二元分类模型。 详细了解表格数据分类。 详细了解 Vertex Explainable AI

教程步骤

  • 创建 Agent Platform 数据集资源。
  • 训练 AutoML 表格二元分类模型。
  • 查看经过训练的模型的评估指标。
  • 创建服务端点资源。
  • 将模型资源部署到服务端点资源。
  • 发出具有可解释性的在线预测请求。
  • 取消部署模型资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Vertex Explainable AI
Agent Platform Batch Prediction
用于批量预测的自定义训练图片分类模型(包含说明)
了解如何使用 Vertex AI Training and Vertex Explainable AI 创建提供解释的自定义图片分类模型,然后了解如何使用 Agent Platform Batch Prediction 发出批量预测请求并提供解释。 详细了解 Vertex Explainable AI。 详细了解 Agent Platform Batch Prediction

教程步骤

  • 创建一个 Agent Platform 自定义作业来训练 TensorFlow 模型。
  • 查看经过训练的模型的评估。
  • 就何时部署模型设置解释参数。
  • 将经过训练的模型制品和解释参数作为 Model 资源上传。
  • 进行提供解释的批量预测。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Vertex Explainable AI
Agent Platform Inference
适用于在线预测的提供解释的自定义训练图片分类模型
了解如何使用 Agent Platform Training 和 Vertex Explainable AI 创建提供解释的自定义图片分类模型。详细了解 Vertex Explainable AI。 详细了解 Agent Platform 推理

教程步骤

  • 创建一个 Agent Platform 自定义作业来训练 TensorFlow 模型。
  • 查看经过训练的模型的评估。
  • 就何时部署模型设置解释参数。
  • 将经过训练的模型制品和解释作为模型资源上传。
  • 创建服务端点资源。
  • 将模型资源部署到服务端点资源。
  • 进行预测并提供解释。
  • 取消部署模型资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Vertex Explainable AI
Agent Platform Batch Prediction
用于批量预测的自定义训练表格回归模型(包含说明)
了解如何使用 Agent Platform Training 和 Vertex Explainable AI 创建提供解释的自定义图片分类模型。详细了解 Vertex Explainable AI。 详细了解 Agent Platform Batch Prediction

教程步骤

  • 创建一个 Agent Platform 自定义作业来训练 TensorFlow 模型。
  • 查看经过训练的模型的评估。
  • 为模型设置解释参数。
  • 将经过训练的模型制品作为模型资源上传。
  • 进行提供解释的批量预测。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Vertex Explainable AI
Agent Platform Inference
用于在线预测的自定义训练表格的回归模型(包含说明)
了解如何使用 Agent Platform Training 和 Vertex Explainable AI 创建自定义表格回归模型,并提供解释。详细了解 Vertex Explainable AI。 详细了解 Agent Platform 推理

教程步骤

  • 创建一个 Agent Platform 自定义作业来训练 TensorFlow 模型。
  • 查看经过训练的模型的评估。
  • 就何时部署模型设置解释参数。
  • 将经过训练的模型制品和解释作为模型资源上传。
  • 创建服务端点资源。
  • 将模型资源部署到服务端点资源。
  • 进行预测并提供解释。
  • 取消部署模型资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Vertex Explainable AI
Agent Platform Inference
用于使用 get_metadata 的可解释的在线预测的自定义训练表格回归模型
了解如何使用 Agent Platform SDK 通过 Python 脚本在 Google 预构建的 Docker 容器中创建自定义模型。 详细了解 Vertex Explainable AI。 详细了解 Agent Platform 推理

教程步骤

  • 创建一个 Agent Platform 自定义作业来训练 TensorFlow 模型。
  • 训练 TensorFlow 模型。
  • 检索并加载模型制品。
  • 查看经过训练的模型的评估。
  • 设置解释参数。
  • 将模型作为 Agent Platform 模型资源上传。
  • 将模型资源部署到服务端点资源。
  • 进行预测并提供解释。
  • 取消部署模型资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Vertex Explainable AI
Agent Platform Inference
使用 Vertex Explainable AI 提供图片分类解释
了解如何在预训练的图片分类模型上配置基于特征的解释,进行在线预测和批量预测并提供解释。 详细了解 Vertex Explainable AI。 详细了解 Agent Platform 推理

教程步骤

  • 从 TensorFlow Hub 下载预训练模型
  • 上传模型以进行部署
  • 部署模型以进行在线预测
  • 进行在线预测并提供解释
  • 进行提供解释的批量预测
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Vertex Explainable AI
使用 Vertex Explainable AI 提供文本分类解释
了解如何在 TensorFlow 文本分类模型上使用采样 Shapley 方法配置基于特征的解释,以进行提供解释的在线预测。 详细了解 Vertex Explainable AI

教程步骤

  • 构建和训练 TensorFlow 文本分类模型
  • 上传模型以进行部署
  • 部署模型以进行在线预测
  • 进行在线预测并提供解释
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Feature Store
使用 Agent Platform Feature Store 对 BigQuery 数据进行在线特征传送和提取
了解如何创建和使用在线特征存储区实例,以通过 Agent Platform Feature Store 在特征值传送和提取用户体验历程的端到端工作流中托管和传送 BigQuery 中的数据。 详细了解 Agent Platform Feature Store

教程步骤

  • 预配在线特征存储区实例以托管和传送数据。
  • 向在线特征存储区实例注册 BigQuery 视图并设置同步作业。
  • 使用在线服务器提取特征值以进行在线预测。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Feature Store
使用 Agent Platform Feature Store 优化的传送对 BigQuery 数据进行在线特征传送和提取
了解如何创建和使用在线特征存储区实例,以通过 Agent Platform Feature Store 在特征值传送和提取的端到端工作流中托管和传送 BigQuery 中的数据。 详细了解 Agent Platform Feature Store

教程步骤

  • 预配在线特征存储区实例,以使用通过公共或专用端点进行优化的在线传送来托管和传送数据。
  • 向在线特征存储区实例注册 BigQuery 视图并设置同步作业。
  • 使用在线服务器提取特征值以进行在线预测。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Feature Store
使用 Agent Platform Feature Store 进行 BigQuery 数据的在线特征传送和向量检索
了解如何创建和使用在线特征存储区实例,以通过 Agent Platform Feature Store 在特征传送和向量检索用户体验历程的端到端工作流中托管和传送 BigQuery 中的数据。 详细了解 Agent Platform Feature Store

教程步骤

  • 预配在线特征存储区实例以托管和传送数据。
  • 创建在线特征存储区实例以传送 BigQuery 表。
  • 使用在线服务器搜索最邻近项。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Feature Store
基于 Agent Platform Feature Store 的 LLM 接地教程
了解如何创建和使用在线特征存储区实例,以通过 Agent Platform Feature Store 在特征传送和向量检索用户体验历程的端到端工作流中托管和传送 BigQuery 中的数据。 详细了解 Agent Platform Feature Store

教程步骤

  • 预配在线特征存储区实例以托管和传送数据。
  • 创建在线特征存储区实例以传送 BigQuery 表。
  • 使用在线服务器搜索最邻近项。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Feature Store
Agent Platform Feature Store 特征视图服务代理教程
了解如何在 Agent Platform Feature Store 中为特征视图使用专用服务代理。 详细了解 Agent Platform Feature Store

教程步骤

  • 创建已配置为使用专用服务账号的特征视图。
  • 系统会为每个特征视图创建一个服务账号。此类服务账号用于从 BigQuery 同步数据。
  • Get/List feature view API 会返回自动创建的服务账号。用户需要调用 bq addiampolicybinding 命令,向服务账号授予 roles/bigquery.dataViewer
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Feature Store
Agent Platform Feature Store(旧版)中的流式导入 SDK
了解如何使用 Agent Platform SDK 中的 write_feature_values 方法将特征从 Pandas DataFrame 导入 Agent Platform Feature Store。 详细了解 Agent Platform Feature Store

教程步骤

  • 创建特征存储区。
  • 为特征存储区创建新的实体类型。
  • 将特征值从 Pandas DataFrame 导入到特征存储区中的实体类型。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Feature Store
将 Agent Platform Feature Store(旧版)与 Pandas DataFrame 搭配使用
了解如何将 Agent Platform Feature Store 与 Pandas DataFrame 搭配使用。 详细了解 Agent Platform Feature Store

教程步骤

  • 创建 FeaturestoreEntityTypeFeature 资源。
  • 将特征值从 Pandas DataFrame 导入实体类型。
  • 将实体特征值从在线特征存储区读入 Pandas DataFrame。
  • 将特征值从特征存储区批量传送到 Pandas DataFrame 中。
  • 在线传送更新的特征值。
  • 提取用于训练的特征值时具备时间点正确性。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Feature Store
使用 Agent Platform Feature Store(旧版)进行在线预测和批量预测
了解如何使用 Agent Platform Feature Store 导入特征数据,然后访问这些特征数据以执行在线传送和离线任务(例如训练)。 详细了解 Agent Platform Feature Store

教程步骤

  • 创建 FeaturestoreEntityTypeFeature 资源。
  • 将特征数据导入 Featurestore 资源。
  • 使用导入的特征处理在线预测请求。
  • 在一些离线作业(如训练作业)中使用导入的特征。
  • 使用流式导入功能导入少量数据。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
代理平台上的生成式 AI 支持概览
使用 RLHF 调优的模型进行 Agent Platform LLM 批量推理
在本教程中,您将使用 Agent Platform 通过经 RLHF 调优的大语言模型执行预测。 详细了解 Agent Platform 上的生成式 AI 支持概览

教程步骤

  • 使用预定义的模板创建 Agent Platform 流水线作业以进行批量推理。
  • 使用 Agent Platform Pipelines 执行流水线。
  • 针对给定数据集的模型生成预测结果。
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
generative_ai
提炼大语言模型
了解如何使用 Agent Platform LLM 蒸馏和部署大语言模型。

教程步骤

  • 获取 Agent Platform LLM 模型。
  • 蒸馏模型(这会自动创建 Agent Platform 端点并将模型部署到该端点)。
  • 使用 Agent Platform LLM 进行预测。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
使用 RLHF 调优来调整文本模型
Agent Platform LLM 基于人类反馈的强化学习
在本教程中,您将使用 Agent Platform RLHF 来调优和部署大语言模型。 详细了解如何使用 RLHF 调优来调整文本模型

教程步骤

  • 设置模型调优步数。
  • 使用预定义的调优模板创建 Agent Platform 流水线作业。
  • 使用 Agent Platform Pipelines 执行流水线。
  • 从调优的模型获取预测结果。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
文本嵌入
使用嵌入执行语义搜索
在本教程中,我们将演示如何创建根据文本生成的嵌入并执行语义搜索。 详细了解文本嵌入

教程步骤

  • 安装和导入
  • 创建嵌入数据集
  • 创建索引
  • 查询索引
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
generative_ai
在 Agent Platform 上获取文本嵌入
了解如何在提供文本嵌入模型和文本后,获取相应的文本嵌入。

教程步骤

Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
generative_ai
在 Agent Platform 上获取文本嵌入
了解如何在提供文本嵌入模型和文本后,获取相应的文本嵌入。

教程步骤

Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
使用监督式调优来调整文本模型
Agent Platform 调优 PEFT 模型
了解如何使用 Agent Platform LLM 调优和部署 PEFT 大语言模型。 详细了解如何使用监督式调优来调整文本模型

教程步骤

  • 获取 Agent Platform LLM 模型。
  • 调优模型。
  • 这会自动创建 Agent Platform 端点并将模型部署到该端点。
  • 使用 Agent Platform LLM 进行预测。
  • 使用 Agent Platform Inference 进行预测。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
generative_ai
在 Agent Platform 上获取调优文本嵌入
了解如何调优文本嵌入模型。

教程步骤

Colab 徽标 Colab
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
PaLM API
将 Agent Platform SDK 与大语言模型搭配使用
了解如何为 Agent Platform 上提供的大语言模型提供文本输入,以测试、调优和部署生成式 AI 语言模型。详细了解 PaLM API

教程步骤

  • 使用 Agent Platform PaLM API 的预测端点接收对消息的生成式 AI 响应。
  • 使用文本嵌入端点接收消息的向量表示。
  • 根据输入/输出训练数据执行 LLM 提示调优。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
迁移到 Agent Platform
图片数据的分类
AutoML Image Classification
了解如何使用 AutoML 训练图片模型,并使用 Agent Platform InferenceAgent Platform batch inference 执行在线预测和批量预测。 详细了解如何迁移到 Agent Platform。 详细了解图片数据分类

教程步骤

  • 训练 AutoML 图片分类模型。
  • 进行批量预测。
  • 将模型部署到端点
  • 进行在线预测
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
迁移到 Agent Platform
图片数据的对象检测
AutoML 图片对象检测
了解如何使用 AutoML 训练图片模型,并使用 Agent Platform InferenceAgent Platform Batch Prediction 执行在线预测和批量预测。 详细了解如何迁移到 Agent Platform。 详细了解图片数据的对象检测

教程步骤

  • 训练 AutoML 对象检测模型。
  • 进行批量预测。
  • 将模型部署到端点
  • 进行在线预测
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
迁移到 Agent Platform
表格数据的分类
AutoML 表格二元分类
在本教程中,您将使用 Agent Platform SDK 通过 Python 脚本创建一个 AutoML 表格二元分类模型并进行部署,以执行在线预测。 详细了解如何迁移到 Agent Platform。 详细了解表格数据分类

教程步骤

  • 创建 Agent Platform 数据集资源。
  • 训练模型。
  • 查看模型评估。
  • 将模型资源部署到服务端点资源。
  • 进行预测。
  • 取消部署模型
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
迁移到 Agent Platform
自定义训练
使用自定义训练容器进行自定义图片分类
了解如何使用自定义容器和 Agent Platform Training 来训练 TensorFlow 图片分类模型。 详细了解如何迁移到 Agent Platform。 详细了解自定义训练

教程步骤

  • 将训练代码封装到一个 Python 应用中。
  • 使用 Cloud Build 和 Artifact Registry 容器化该训练应用。
  • 在 Agent Platform 中创建一个自定义容器训练作业并运行该作业。
  • 评估通过该训练作业生成的模型。
  • 在 Agent Platform Model Registry 中为经过训练的模型创建模型资源。
  • 运行 Agent Platform 批量推理作业。
  • 将模型资源部署到 Agent Platform 端点。
  • 在模型资源上运行一个在线预测作业。
  • 清理创建的资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
迁移到 Agent Platform
自定义训练概览
使用预构建训练容器进行自定义图片分类
了解如何使用预构建容器和 Agent Platform Training 来训练 TensorFlow 图片分类模型。 详细了解如何迁移到 Agent Platform。 详细了解自定义训练概览

教程步骤

  • 将训练代码封装到一个 Python 应用中。
  • 使用 Cloud Build 和 Artifact Registry 容器化该训练应用。
  • 在 Agent Platform 中创建一个自定义容器训练作业并运行该作业。
  • 评估通过该训练作业生成的模型。
  • 在 Agent Platform Model Registry 中为经过训练的模型创建模型资源。
  • 运行 Agent Platform 批量推理作业。
  • 将模型资源部署到 Agent Platform 端点。
  • 在模型资源上运行一个在线预测作业。
  • 清理创建的资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
迁移到 Agent Platform
自定义训练概览
使用预构建训练容器来训练自定义 Scikit-Learn 模型
了解如何使用 Vertex AI Training 创建自定义训练的模型。 详细了解如何迁移到 Agent Platform。 详细了解自定义训练概览

教程步骤

  • 创建 Agent Platform 自定义作业来训练 scikitlearn 模型。
  • 将经过训练的模型制品作为模型资源上传。
  • 生成批量预测。
  • 将模型资源部署到服务端点资源。
  • 生成在线预测。
  • 取消部署模型资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
迁移到 Agent Platform
自定义训练概览
使用预构建训练容器来训练自定义 XGBoost 模型
了解如何使用 Vertex AI Training 创建自定义训练的模型。 详细了解如何迁移到 Agent Platform。 详细了解自定义训练概览

教程步骤

  • 创建一个 Agent Platform 自定义作业来训练 xgboost 模型。
  • 将经过训练的模型制品作为模型资源上传。
  • 生成批量预测。
  • 将模型资源部署到服务端点资源。
  • 生成在线预测。
  • 取消部署模型资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform 超参数调节
自定义训练
超参数调节
了解如何使用 Agent Platform 超参数创建和调优自定义训练的模型。 详细了解 Agent Platform 超参数调节。 详细了解自定义训练

教程步骤

  • 创建一个 Agent Platform 超参数调节作业来训练 TensorFlow 模型。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Google Artifact Registry 文档
Google Artifact Registry 使用入门
了解如何使用 Google Artifact Registry。 详细了解 Google Artifact Registry 文档

教程步骤

  • 创建私有 Docker 仓库。
  • 标记私有 Docker 仓库专用的容器映像。
  • 将容器映像推送到私有 Docker 仓库。
  • 从私有 Docker 仓库中拉取容器映像。
  • 删除私有 Docker 仓库。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Vertex ML Metadata
跟踪自定义训练作业的参数和指标
了解如何使用 Agent Platform SDK for Python 执行以下操作:

教程步骤

  • 跟踪自定义训练作业的训练参数和预测指标。
  • 提取并分析实验中的所有参数和指标。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Vertex ML Metadata
跟踪本地训练的模型的参数和指标
了解如何使用 Vertex ML Metadata 跟踪训练参数和评估指标。 详细了解 Vertex ML Metadata

教程步骤

  • 跟踪本地训练的模型的参数和指标。
  • 提取并分析实验中的所有参数和指标。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Vertex ML Metadata
Agent Platform Pipelines
使用 Vertex ML Metadata 跟踪各 Agent Platform Pipelines 流水线运行的工件和指标
了解如何使用 Vertex ML Metadata 跟踪各 Agent Platform Pipeline 流水线运行中的制品和指标。 详细了解 Vertex ML Metadata。 详细了解 Agent Platform Pipelines

教程步骤

  • 使用 Kubeflow Pipelines SDK 构建在 Agent Platform 上运行的机器学习流水线。
  • 该流水线会创建一个数据集、训练一个 scikitlearn 模型,并将该模型部署到端点。
  • 编写用于生成制品和元数据的自定义流水线组件。
  • 比较 Agent Platform Pipelines 流水线运行(无论是在 Google Cloud 控制台中还是以编程方式)。
  • 跟踪流水线生成的制品的沿袭。
  • 查询流水线运行的元数据。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Model Evaluation
表格数据的分类
评估 AutoML 表格分类模型的批量预测结果
了解如何训练 Agent Platform AutoML 表格分类模型,并了解如何使用 google_cloud_pipeline_components 通过 Agent Platform 流水线作业对其进行评估: 详细了解 Agent Platform 模型评估。 详细了解表格数据分类

教程步骤

  • 创建 Agent Platform Dataset
  • 基于 Dataset 资源训练 AutoML 表格分类模型。
  • 将经过训练的 AutoML model resource 导入到流水线中。
  • 运行 Batch Prediction 作业。
  • 使用 Classification Evaluation component 评估 AutoML 模型。
  • 将分类指标导入 AutoML 模型资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Model Evaluation
表格数据的回归
评估 AutoML 表格回归模型的批量预测结果
了解如何使用 google_cloud_pipeline_components 通过 Agent Platform 流水线作业评估 Agent Platform 模型资源: 详细了解 Agent Platform 模型评估。 详细了解表格数据的回归

教程步骤

  • 创建 Agent Platform 数据集。
  • 配置 AutoMLTabularTrainingJob 类。
  • 运行 AutoMLTabularTrainingJob 以返回模型。
  • 将经过预训练的 AutoML model resource 导入流水线。
  • 在流水线中运行 batch prediction 作业。
  • 使用 regression evaluation component 评估 AutoML 模型。
  • 将生成的回归指标导入 AutoML 模型资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform 自定义训练
Agent Platform 模型评估
评估自定义表格分类模型的批量预测结果
在本教程中,您将训练一个 scikit-learn RandomForest 模型,将该模型保存到 Agent Platform Model Registry 中,并使用 Google Cloud Pipeline Components Python SDK 通过 Agent Platform 流水线作业评估该模型。 详细了解 Agent Platform 自定义训练。 详细了解 Agent Platform 模型评估

教程步骤

  • 从公共来源提取数据集。
  • 在本地预处理数据,并将测试数据保存在 BigQuery 中。
  • 使用 scikitlearn Python 软件包在本地训练 RandomForest 分类模型。
  • 在 Artifact Registry 中创建自定义容器以进行预测。
  • 将模型上传到 Agent Platform Model Registry。
  • 创建并运行 Agent Platform 流水线
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Model Evaluation
自定义训练
评估自定义表格回归模型的批量预测结果
了解如何使用 Google Cloud 流水线组件通过 Agent Platform 流水线作业评估 Agent Platform 模型资源。 详细了解 Agent Platform Model Evaluation。 详细了解自定义训练

教程步骤

  • 创建 Agent Platform 自定义训练作业以训练 TensorFlow 模型。
  • 运行自定义训练作业。
  • 检索并加载模型制品。
  • 查看模型评估。
  • 将模型作为 Agent Platform 模型资源上传。
  • 将经过预训练的 Agent Platform 模型资源导入流水线。
  • 在流水线中运行批量预测作业。
  • 使用回归评估组件评估模型。
  • 将回归指标导入 Agent Platform 模型资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform AutoSxS 模型评估
根据人类偏好数据集检查自动评估器相符情况
了解如何使用 Agent Platform Pipelinesgoogle_cloud_pipeline_components 通过人类偏好数据检查自动评估器相符情况: 详细了解 Agent Platform AutoSxS 模型评估

教程步骤

  • 创建包含预测结果和人类偏好数据的评估数据集。
  • 在本地预处理数据,并将其保存在 Cloud Storage 中。
  • 创建并运行代理平台 AutoSxS 流水线,以生成判断结果并使用生成的判断结果生成一组 AutoSxS 指标。
  • 输出判断结果和 AutoSxS 指标。
  • 清理在此笔记本中创建的资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform AutoSxS 模型评估
针对第三方模型评估 Agent Platform Model Registry 中的 LLM
了解如何使用 Agent Platform Pipelinesgoogle_cloud_pipeline_components 评估两个 LLM 模型之间的性能: 详细了解 Agent Platform AutoSxS 模型评估

教程步骤

  • 从公共来源提取数据集。
  • 在本地预处理数据,并将测试数据保存在 Cloud Storage 中。
  • 创建并运行 Agent Platform AutoSxS 流水线,以生成判断结果并使用生成的判断结果评估两个候选模型。
  • 输出判断结果和评估指标。
  • 清理在此笔记本中创建的资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
用于批量预测的 Agent Platform Model Monitoring
将 Agent Platform Batch Prediction 与 Model Monitoring 搭配使用
了解如何使用 Agent Platform 模型监控服务检测批量预测中的偏移和异常。 详细了解适用于批量预测的 Agent Platform Model Monitoring

教程步骤

  • 将预训练模型作为 Agent Platform 模型资源上传。
  • 生成批量预测请求。
  • 解读模型监控功能报告的统计信息、可视化和其他数据。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Model Monitoring
适用于 AutoML 表格模型的代理平台模型监控
了解如何使用 Agent Platform Model Monitoring 服务检测 AutoML 表格模型的输入预测请求中的特征偏差和偏移。 详细了解 Agent Platform Model Monitoring

教程步骤

  • 训练 AutoML 模型。
  • 将模型资源部署到 Agent Platform 端点资源。
  • 配置端点资源以进行模型监控。
  • 生成合成预测请求以监控其偏差。
  • 生成合成预测请求以监控其偏移。
  • 等待电子邮件提醒通知。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Model Monitoring
适用于 AutoML 图片模型中的在线预测的 Agent Platform Model Monitoring
了解如何将 Agent Platform Model MonitoringAgent Platform Online Prediction 搭配使用,并结合 AutoML 图片分类模型检测未分发的图片。 详细了解 Agent Platform Model Monitoring

教程步骤

  • 1. 训练 AutoML 图片分类模型。
  • 2. 创建端点。
  • 3. 将模型部署到端点,并针对模型监控进行配置。
  • 4. 提交包含已分发和未分发图片的在线预测。
  • 5. 使用模型监控功能计算每张图片的异常值分数。
  • 6. 识别在线预测请求中未分发的图片。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Model Monitoring
适用于自定义表格模型的 Agent Platform Model Monitoring
了解如何使用 Agent Platform Model Monitoring 服务检测自定义表格模型的输入预测请求中的特征偏差和漂移情况。 详细了解 Agent Platform Model Monitoring

教程步骤

  • 下载经过预训练的自定义表格模型。
  • 将预训练模型上传到 Agent Platform Model Registry。
  • 将模型资源部署到 Agent Platform 端点资源。
  • 配置端点资源以进行模型监控。
  • 生成合成预测请求以模拟偏差。
  • 等待电子邮件提醒通知。
  • 生成合成预测请求以模拟偏移。
  • 等待电子邮件提醒通知。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Model Monitoring
适用于使用 TensorFlow Serving 容器的自定义表格模型的 Agent Platform Model Monitoring
了解如何使用 Agent Platform Model Monitoring 服务,通过自定义部署容器检测自定义表格模型的输入预测请求中的特征偏差和偏移。 详细了解 Agent Platform Model Monitoring

教程步骤

  • 下载经过预训练的自定义表格模型。
  • 将经过预训练的模型作为模型资源上传。
  • 使用“TensorFlow Serving”服务二进制文件将模型资源部署到端点资源。
  • 配置端点资源以进行模型监控。
  • 生成合成预测请求以监控其偏差。
  • 等待电子邮件提醒通知。
  • 生成合成预测请求以监控其偏移。
  • 等待电子邮件提醒通知。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Model Monitoring
为表格模型设置 Agent Platform Model Monitoring
了解如何设置 Agent Platform Model Monitoring 服务以检测输入预测请求中的特征偏差和偏移。 详细了解 Agent Platform Model Monitoring

教程步骤

  • 下载经过预训练的自定义表格模型。
  • 将经过预训练的模型作为模型资源上传。
  • 将模型资源部署到端点资源。
  • 配置端点资源以进行模型监控。
  • 特征输入的偏差和偏移检测。
  • 特征归因的偏差和偏移检测。
  • 通过发送 1,000 个预测请求自动生成输入架构。
  • 列出、暂停、恢复和删除监控作业。
  • 对预定义的输入架构重启监控作业。
  • 查看记录的受监控数据。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Model Monitoring
适用于 XGBoost 模型的 Agent Platform Model Monitoring
了解如何使用代理平台模型监控服务检测 XGBoost 模型的输入预测请求中的特征偏差和偏移。 详细了解 Agent Platform Model Monitoring

教程步骤

  • 下载经过预训练的 XGBoost 模型。
  • 将预训练模型上传到 Agent Platform Model Registry。
  • 将模型资源部署到 Agent Platform 端点资源。
  • 配置端点资源以进行模型监控
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Model Monitoring
将 Agent Platform Model Monitoring 与 Vertex Explainable AI 特征归因搭配使用
了解如何使用 Agent Platform Model Monitoring 服务检测已部署的 Agent Platform 模型资源的预测请求中的偏移和异常。 详细了解 Agent Platform Model Monitoring

教程步骤

  • 将预训练模型作为 Agent Platform 模型资源上传。
  • 创建 Agent Platform 端点资源。
  • 将模型资源部署到端点资源。
  • 配置端点资源以进行模型监控。
  • 初始化基准分布以进行模型监控。
  • 生成合成预测请求。
  • 了解如何解读模型监控功能报告的统计信息、可视化和其他数据。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
model_monitoring_v2
适用于 Agent Platform 自定义模型批量预测作业的 Model Monitoring
在本教程中,您将完成以下步骤:

教程步骤

Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
model_monitoring_v2
适用于 Agent Platform 自定义模型在线预测的 Model Monitoring
在本教程中,您将完成以下步骤:

教程步骤

Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Model Registry
Agent Platform Model Registry 使用入门
了解如何使用 Agent Platform Model Registry 创建和注册多个模型版本。 详细了解 Agent Platform Model Registry

教程步骤

  • 创建模型的第一个版本并将其注册到 Agent Platform Model Registry。
  • 创建模型的第二个版本并将其注册到 Agent Platform Model Registry。
  • 更新默认的模型版本。
  • 删除模型版本。
  • 重新训练下一个模型版本。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Pipelines
AutoML 组件
表格数据的分类
使用 google-cloud-pipeline-components 的 AutoML 表格流水线
了解如何使用 Agent Platform Pipelines 和 Google Cloud 流水线组件构建 AutoML 表格分类模型。 详细了解 Agent Platform Pipelines。 详细了解 AutoML 组件。 详细了解表格数据分类

教程步骤

  • 创建用于创建 Agent Platform 数据集的 KFP 流水线。
  • 向用于训练 AutoML 表格式分类模型资源的流水线中添加组件。
  • 添加用于创建 Agent Platform 端点资源的组件。
  • 添加一个将模型资源部署到端点资源的组件。
  • 编译 KFP 流水线。
  • 使用 Agent Platform Pipelines 执行 KFP 流水线。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Pipelines
将模型部署到生产环境时可使用的挑战者与绑定项对比方法
了解如何构建一个 Agent Platform 流水线来训练新的挑战者模型版本、评估该模型并将评估结果与生产环境中现有的可靠模型进行比较。

教程步骤

  • 将经过预训练的(绑定的)模型导入 Agent Platform Model Registry。
  • 将合成模型评估指标导入相应的(绑定)模型。
  • 创建 Agent Platform 端点资源
  • 将可靠模型部署到端点资源。
  • 创建用于运行以下步骤的 Agent Platform 流水线
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Pipelines
使用 KFP SDK 的流水线控制结构
了解如何使用 KFP SDK 构建流水线,该 SDK 使用循环和条件(包括嵌套示例)。 详细了解 Agent Platform Pipelines

教程步骤

  • 使用控制流组件创建 KFP 流水线
  • 编译 KFP 流水线
  • 使用 Agent Platform Pipelines 执行 KFP 流水线
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Pipelines
自定义训练组件
使用预构建的 Google Cloud 流水线组件进行自定义训练
了解如何使用 Agent Platform Pipelines 和 Google Cloud 流水线组件构建自定义模型。 详细了解 Agent Platform Pipelines。 详细了解自定义训练组件

教程步骤

  • 创建 KFP 流水线
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Pipelines
Agent Platform Batch Prediction 组件
使用 BigQuery 作为训练和批量预测的来源和目标的自定义表格分类模型
在本教程中,您将训练一个 scikit-learn 表格分类模型,并使用 google_cloud_pipeline_components 通过 Agent Platform 流水线为其创建一个批量预测作业。 详细了解 Agent Platform Pipelines。 详细了解 Agent Platform Batch Prediction 组件

教程步骤

  • 在 BigQuery 中创建数据集。
  • 从源数据集中预留出一些数据,以进行批量预测。
  • 为训练应用创建自定义 Python 软件包。
  • 将该 Python 软件包上传到 Cloud Storage。
  • 创建 Agent Platform 流水线
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Pipelines
Agent Platform 超参数调节
Agent Platform 超参数调节流水线组件使用入门
了解如何使用预构建的 Google Cloud 流水线组件进行 Agent Platform 超参数调优。 详细了解 Agent Platform Pipelines。 详细了解 Agent Platform 超参数调节

教程步骤

  • 构建流水线用于
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Pipelines
Agent Platform Pipelines 的机器管理使用入门
了解如何将独立的自定义训练组件转换为 Agent Platform CustomJob,从而:

教程步骤

  • 使用独立的训练作业创建自定义组件。
  • 使用机器资源的组件级设置执行流水线
  • 将独立的训练组件转换为 Agent Platform CustomJob
  • 使用机器资源的自定义作业级设置执行流水线
Colab 徽标 Colab
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Pipelines
AutoML 组件
使用 google-cloud-pipeline-components 的 AutoML 图片分类流水线
了解如何使用 Agent Platform Pipelines 和 Google Cloud 流水线组件构建 AutoML 图片分类模型。 详细了解 Agent Platform Pipelines。 详细了解 AutoML 组件

教程步骤

  • 创建 KFP 流水线
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Pipelines
AutoML 组件
表格数据的回归
使用 google-cloud-pipeline-components 的 AutoML 表格回归流水线
了解如何使用 Agent Platform PipelinesGoogle Cloud Pipeline Components 构建 AutoML 表格回归模型。 详细了解 Agent Platform Pipelines。 详细了解 AutoML 组件。 详细了解表格数据的回归

教程步骤

  • 创建用于创建 Dataset 资源的 KFP 流水线。
  • 向用于训练 AutoML 表格回归 Model 资源的流水线中添加组件。
  • 添加用于创建 Endpoint 资源的组件。
  • 添加用于将 Model 资源部署到 Endpoint 资源的组件。
  • 编译 KFP 流水线。
  • 使用 Agent Platform Pipelines 执行 KFP 流水线。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Pipelines
BigQuery ML 组件
使用 Swivel、BigQuery ML 和 Agent Platform Pipelines 训练流量获取预测模型
了解如何使用 Agent Platform 流水线构建简单的 BigQuery ML 流水线,以计算文章中内容的文本嵌入,并将其分类为“公司收购”类别。 详细了解 Agent Platform Pipelines。 详细了解 BigQuery ML 组件

教程步骤

  • 为 Dataflow 作业创建一个组件,以将数据注入到 BigQuery。
  • 创建一个组件,以预处理要对 BigQuery 中的数据运行的步骤。
  • 创建一个组件,以使用 BigQuery ML 训练逻辑回归模型。
  • 使用所创建的所有组件构建和配置一个 Kubeflow DSL 流水线。
  • 在 Agent Platform Pipelines 中编译和运行该流水线。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Pipelines
自定义训练组件
使用 Google Cloud 流水线组件训练、上传和部署模型
了解如何使用 Agent Platform Pipelines 和 Google Cloud 流水线组件构建和部署自定义模型。 详细了解 Agent Platform Pipelines。 详细了解自定义训练组件

教程步骤

  • 创建 KFP 流水线
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Pipelines
与 KFP 2.x 搭配使用的 Agent Platform Pipelines
了解如何使用 Agent Platform Pipelines 和 KFP 2。

教程步骤

  • 创建 KFP 流水线
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Pipelines
基于 Python 函数的轻量级组件及组件 I/O
了解如何使用 KFP SDK 构建基于 Python 函数的轻量级组件,然后了解如何使用 Agent Platform Pipelines 执行流水线。 详细了解 Agent Platform Pipelines

教程步骤

  • 构建基于 Python 函数的 KFP 组件。
  • 构建 KFP 流水线。
  • 通过路径引用和值在组件之间传递工件和参数。
  • 使用 kfp.dsl.importer 方法。
  • 编译 KFP 流水线。
  • 使用 Agent Platform Pipelines 执行 KFP 流水线
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Pipelines
使用 KFP SDK 直观呈现指标并对各运行进行比较
了解如何使用 KFP SDK for Python 构建用于生成评估指标的流水线。详细了解 Agent Platform Pipelines

教程步骤

  • 创建 KFP 组件
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Pipelines
将模型部署到生产环境时可使用的多竞争者与冠军方法
了解如何构建一个 Agent Platform 流水线来将已部署模型中的新生产数据与模型的其他版本进行比对评估,以确定该竞争者模型能否成为生产环境中冠军模型的替代项。

教程步骤

  • 将经过预训练的(冠军)模型导入 Agent Platform Model Registry。
  • 将合成模型训练评估指标导入相应的(冠军)模型。
  • 创建 Agent Platform 端点资源。
  • 将冠军模型部署到端点资源。
  • 导入已部署模型的其他(竞争者)版本。
  • 将合成模型训练评估指标导入相应的(竞争者)模型。
  • 创建用于运行以下步骤的 Agent Platform 流水线
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Pipelines
KFP 的流水线简介
了解如何使用 KFP SDK for Python 构建用于生成评估指标的流水线。详细了解 Agent Platform Pipelines

教程步骤

  • 定义并编译 Agent Platform 流水线。
  • 指定要用于流水线运行的服务账号。
  • 使用 Agent Platform SDK for Python 和 REST API 运行流水线。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
AutoML 组件
BigQuery ML 组件
BigQuery ML 和 AutoML - 使用代理平台快速制作原型
了解如何使用 Agent Platform Pipelines 快速设计模型原型。 详细了解 AutoML 组件。 详细了解 BigQuery ML 组件

教程步骤

  • 创建 BigQuery 和 Agent Platform 训练数据集。
  • 训练 BigQuery ML 和 AutoML 模型。
  • 从 BigQueryML 和 AutoML 模型中提取评估指标。
  • 选择训练效果最佳的模型。
  • 部署训练效果最佳的模型。
  • 测试所部署模型的基础架构。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform 批量推理
启用特征过滤功能的自定义模型批量推理
了解如何使用 Python 版 Agent Platform SDK 通过 Docker 容器中的 Python 脚本创建自定义训练模型,然后设置要包含或排除的特征列表并运行批量推理作业。 详细了解 Agent Platform 批量推理

教程步骤

  • 创建用于训练模型的 Agent Platform 自定义 TrainingPipeline
  • 训练 TensorFlow 模型。
  • 发送批量预测作业。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform 推理
NVIDIA Triton 服务器使用入门
了解如何将使用 Agent Platform 模型资源运行 Nvidia Triton 服务器的容器部署到 Agent Platform 端点以进行在线预测。 详细了解 Agent Platform 推理

教程步骤

  • 从 TensorFlow Hub 下载模型工件。
  • 为模型创建 Triton 服务配置文件。
  • 使用 Triton 服务映像构建自定义容器,以进行模型部署。
  • 将模型作为 Agent Platform 模型资源上传。
  • 将 Agent Platform 模型资源部署到 Agent Platform 端点资源。
  • 发出预测请求。
  • 取消部署模型资源并删除端点。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Raw Predict
将 TensorFlow Serving 函数与 Agent Platform Raw Prediction 搭配使用的使用入门
了解如何对 Agent Platform Endpoint 资源使用 Agent Platform Raw Prediction。 详细了解 Raw Predict

教程步骤

  • 下载 TensorFlow 1.x Estimator 的预训练表格分类模型制品。
  • 将 TensorFlow Estimator 模型作为 Agent Platform Model 资源上传。
  • 创建 Endpoint 资源。
  • Model 资源部署到 Endpoint 资源。
  • 对部署到 Endpoint 资源的 Model 资源实例进行在线原始预测。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
从自定义训练的模型获取预测结果
将 TensorFlow Serving 与 Agent Platform Inference 搭配使用的使用入门
了解如何在 Agent Platform Endpoint 资源中将 Agent Platform InferenceTensorFlow Serving 服务二进制文件搭配使用。 详细了解如何从自定义训练的模型获取预测结果

教程步骤

Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
专用端点
Agent Platform 专用端点使用入门
了解如何使用 Agent Platform Private Endpoint 资源。 详细了解专用端点

教程步骤

  • 创建 Private Endpoint 资源。
  • 配置 VPC 对等互连连接。
  • 配置 Model 资源的服务二进制文件,以部署到 Private Endpoint 资源。
  • Model 资源部署到 Private Endpoint 资源。
  • Private Endpoint 发送预测请求
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform 语言模型
Agent Platform LLM 和流式预测
了解如何使用 Agent Platform LLM 下载预训练的 LLM 模型、进行预测并微调模型。 详细了解 Agent Platform 语言模型

教程步骤

  • 加载预训练的文本生成模型。
  • 进行非流式预测
  • 加载预训练的文本生成模型,该模型支持流式预测。
  • 进行流式预测
  • 加载预训练的聊天模型。
  • 进行本地交互式聊天会话。
  • 使用文本生成模型进行批量预测。
  • 使用文本嵌入模型进行批量预测。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
用于预测的预构建容器
在 Agent Platform 上使用预构建容器提供 PyTorch 图片模型
了解如何使用预构建的 Agent 平台容器和 TorchServe 打包和部署 PyTorch 图片分类模型,以执行在线预测和批量预测。 详细了解用于预测的预构建容器

教程步骤

  • 从 PyTorch 下载预训练的图片模型
  • 创建自定义模型处理程序
  • 将模型制品打包到一个模型归档文件中
  • 上传模型以进行部署
  • 部署用于预测的模型
  • 进行在线预测
  • 进行批量预测
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform 推理
在 Agent Platform 上使用预构建容器训练和部署 PyTorch 模型
了解如何使用预构建的容器构建、训练和部署 PyTorch 图片分类模型,以进行自定义训练和预测。

教程步骤

  • 将训练应用打包到 Python 源分发包中
  • 在预构建容器中配置并运行训练作业
  • 将模型制品打包到一个模型归档文件中
  • 上传模型以进行部署
  • 使用预构建容器部署模型以进行预测
  • 进行在线预测
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Ray on Agent Platform 概览
开始使用 Agent Platform 上的 Ray on PyTorch
了解如何利用 Agent Platform 上的 Ray 高效分发 PyTorch 图片分类模型的训练过程。 详细了解 Ray on Agent Platform 概览

教程步骤

  • 准备训练脚本
  • 使用 Ray Jobs API 提交 Ray 作业
  • 从 PyTorch 下载经过训练的图片模型
  • 创建自定义模型处理程序
  • 将模型制品打包到一个模型归档文件中
  • 在 Agent Platform Model Registry 中注册模型
  • 在 Agent Platform 端点中部署模型
  • 进行在线预测
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Ray on Agent Platform 概览
Ray on Agent Platform 集群管理
了解如何创建集群、列出现有集群、获取集群、更新集群和删除集群。 详细了解 Ray on Agent Platform 概览

教程步骤

  • 创建集群。
  • 列出现有集群。
  • 获取集群。
  • 手动扩容集群,然后缩减集群。
  • 自动扩缩集群。
  • 删除现有集群。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Ray on Agent Platform
Ray on Agent Platform 上的 Spark
Agent Platform 上的 Ray on Spark
了解如何使用 RayDP 在 Agent 平台上的 Ray 集群上运行 Spark 应用。 详细了解 Ray on Agent Platform。 详细了解 Ray on Agent Platform 上的 Spark

教程步骤

  • 创建自定义 Ray on Agent Platform 容器映像
  • 使用自定义容器映像在 Agent Platform 上创建 Ray 集群
  • 使用 RayDP 在集群上以互动方式运行 Spark
  • 通过 Ray Job API 在集群上运行 Spark 应用
  • 在 Spark 应用中从 Google Cloud Storage 读取文件
  • Ray on Agent Platform 上的 Spark 应用中的 Pandas UDF
  • 删除 Agent Platform 上的 Ray 集群
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Vertex AI Training
代理平台 Reduction Server
使用 Agent Platform Reduction Server 的 PyTorch 分布式训练
了解如何创建使用 PyTorch 分布式训练框架和工具的 PyTorch 分布式训练作业,并通过 Reduction Server 在 Vertex AI Training 服务上运行该训练作业。 详细了解 Vertex AI Training。 详细了解 Agent Platform Reduction Server

教程步骤

  • 创建 PyTorch 分布式训练应用
  • 使用预构建容器封装训练应用
  • 在 Agent Platform 上通过 Reduction Server 创建自定义作业
  • 提交并监控作业
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
自定义训练
使用 Python 软件包、代管式文本数据集和 TF Serving 容器进行自定义训练
了解如何使用自定义训练 Python 软件包创建自定义模型,并了解如何使用 TensorFlow-Serving 容器传送模型以进行在线预测。 详细了解自定义训练

教程步骤

  • 创建实用函数以下载数据并准备 csv 文件以创建 Agent Platform 托管式数据集
  • 下载数据
  • 准备 CSV 文件以创建托管式数据集
  • 创建自定义训练 Python 软件包
  • 创建 TensorFlow Serving 容器
  • 使用托管式文本数据集运行自定义训练 Python 软件包
  • 在 Agent Platform 上部署模型并创建端点
  • 在端点上进行预测
  • 在模型上创建批量预测作业
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
TabNet 的表格工作流
使用 TabNet 模型的 Agent Platform Explanations
了解如何提供样本绘图工具,以直观呈现 TabNet 的输出,这有助于解释算法。 详细了解 TabNet 的表格工作流

教程步骤

  • 设置项目。
  • 下载 Syn2 数据的预训练模型的预测数据。
  • 根据掩码输出直观呈现和了解特征重要性。
  • 清理在本教程中创建的资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
适用于表格数据的 BigQuery ML ARIMA+ 预测
使用 Agent Platform 表格式工作流训练 BigQuery ML ARIMA_PLUS 模型
了解如何使用 Google Cloud 流水线组件中的 Agent Platform 训练流水线创建 BigQuery ML ARIMA_PLUS 模型,然后使用相应的预测流水线执行批量预测。 详细了解适用于表格数据的 BigQuery ML ARIMA+ 预测

教程步骤

  • 训练 BigQuery ML ARIMA_PLUS 模型。
  • 查看 BigQuery ML 模型评估。
  • 使用 BigQuery ML 模型进行批量预测。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Google Cloud 流水线组件
适用于表格数据的 Prophet
使用 Agent Platform 表格工作流训练 Prophet 模型
了解如何使用 Google Cloud 流水线组件中的 Agent Platform 训练流水线创建多个 Prophet 模型,然后使用相应的预测流水线执行批量预测。 详细了解 Google Cloud 流水线组件。 详细了解适用于表格数据的 Prophet

教程步骤

  • 1. 训练 Prophet 模型。
  • 1. 查看评估指标。
  • 1. 使用 Prophet 模型进行批量预测。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
TabNet 的表格工作流
TabNet 流水线
了解如何使用两个 Agent Platform TabNet 表格工作流基于表格数据创建分类模型。 详细了解 TabNet 的表格工作流

教程步骤

  • 创建 TabNet CustomJob。如果您知道要用于训练的超参数,则这是最佳方案。
  • 创建 TabNet HyperparameterTuningJob。这样一来,您就可以获得数据集的最佳超参数集。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Wide & Deep 的表格工作流
Wide & Deep 流水线
了解如何使用 Agent Platform Wide & Deep 表格工作流创建两个分类模型。 详细了解 Wide & Deep 的表格工作流

教程步骤

  • 创建 Wide & Deep CustomJob。如果您知道要用于训练的超参数,则这是最佳方案。
  • 创建 Wide & Deep HyperparameterTuningJob。这样一来,您就可以获得数据集的最佳超参数集。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform TensorBoard
自定义训练
使用自定义容器进行 Agent Platform TensorBoard 自定义训练
了解如何使用自定义容器创建自定义训练作业,并在 Agent Platform TensorBoard 上近乎实时地监控训练过程。 详细了解 Agent Platform TensorBoard。 详细了解自定义训练

教程步骤

  • 创建 Docker 代码库及配置。
  • 使用自定义训练代码创建自定义容器映像。
  • 设置服务账号和 Google Cloud Storage 存储桶。
  • 使用自定义容器创建并启动自定义训练作业。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform TensorBoard
自定义训练
使用预构建容器进行 Agent Platform TensorBoard 自定义训练
了解如何使用预构建的容器创建自定义训练作业,并在 Agent Platform TensorBoard 上近乎实时地监控训练过程。 详细了解 Agent Platform TensorBoard。 详细了解自定义训练

教程步骤

  • 设置服务账号和 Cloud Storage 存储桶。
  • 编写自定义训练代码。
  • 封装训练代码并将其上传到 Cloud Storage。
  • 创建并启动启用了 Agent Platform TensorBoard 的自定义训练作业,以实现近乎实时的监控。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform TensorBoard
使用 HParams 信息中心进行 Agent Platform TensorBoard 超参数调节
在此笔记本中,您将使用 TensorFlow 训练模型并执行超参数调优。

教程步骤

  • 调整各 TensorFlow 运行,以记录它们的超参数和指标。
  • 开始执行各运行并将它们全部记录在一个父级目录下。
  • 在代理平台 TensorBoard 的 HParams 信息中心内直观呈现结果。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Profiler
Agent Platform TensorBoard
使用 Cloud Profiler 分析模型训练性能
了解如何为自定义训练作业启用 Profiler。 详细了解 Profiler。 详细了解 Agent Platform TensorBoard

教程步骤

  • 设置服务账号和 Cloud Storage 存储桶
  • 创建 Agent Platform TensorBoard 实例
  • 创建并运行启用了 Profiler 的自定义训练作业
  • 查看 Profiler 信息中心以调试模型训练性能
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Profiler
Agent Platform TensorBoard
使用 Cloud Profiler 在使用预构建容器的自定义训练中分析模型训练性能
了解如何在 Agent 平台中为通过预构建容器进行的自定义训练作业启用 Profiler。 详细了解 Profiler。 详细了解 Agent Platform TensorBoard

教程步骤

  • 准备自定义训练代码,并将训练代码作为 Python 软件包加载到预构建容器中
  • 创建并运行启用了 Profiler 的自定义训练作业
  • 查看 Profiler 信息中心以调试模型训练性能
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform TensorBoard
Agent Platform Pipelines
将 Agent Platform TensorBoard 与 Agent Platform Pipelines 集成使用
了解如何使用 KFP SDK 创建训练流水线,在 Agent Platform Pipelines 中执行该流水线,并在 Agent Platform TensorBoard 上近乎实时地监控训练过程。 详细了解 Agent Platform TensorBoard。 详细了解 Agent Platform Pipelines

教程步骤

  • 设置服务账号和 Google Cloud Storage 存储桶。
  • 使用自定义训练代码构建 KFP 流水线。
  • 在 Agent Platform Pipelines 中编译和执行启用了 Agent Platform TensorBoard 的 KFP 流水线,以实现近乎实时的监控。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform 超参数调节
分布式 Agent 平台超参数调节
在此笔记本中,您将在 Docker 容器中通过 Python 脚本创建一个自定义训练的模型。 详细了解 Agent Platform 超参数调节

教程步骤

  • 使用 Python 软件包进行训练。
  • 报告超参数调优的准确性。
  • 使用 Cloud StorageFuse 将模型制品保存到 Cloud Storage。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Vertex AI Training
Vertex AI Training for LightGBM 使用入门
了解如何使用 Vertex AI Training 的自定义容器方法训练 LightGBM 自定义模型。

教程步骤

  • 使用 Python 软件包进行训练。
  • 使用 Cloud StorageFuse 将模型制品保存到 Cloud Storage。
  • 构建 FastAPI 预测服务器。
  • 为服务器构建 Dockerfile 部署映像。
  • 在本地测试部署映像(可选,不适用于 Colab 用户)。
  • 创建 Agent Platform 模型资源。
  • 运行批量预测作业。
  • 将模型部署到端点并发送在线预测请求。
  • 清理所创建的资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform 分布式训练
Agent Platform 分布式训练使用入门
了解如何在使用 Agent Platform 进行训练时使用 Agent Platform 分布式训练。 详细了解 Agent Platform 分布式训练

教程步骤

Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform 超参数调节
为 TensorFlow 模型运行超参数调节
了解如何为 TensorFlow 模型运行 Agent Platform 超参数调优作业。 详细了解 Agent Platform 超参数调节

教程步骤

  • 修改训练应用代码以自动进行超参数调优。
  • 容器化训练应用代码。
  • 使用 Agent Platform Python SDK 配置并启动超参数调节作业。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform 超参数调节
针对 XGBoost 的 Agent Platform 超参数调节
了解如何使用 Agent Platform 超参数调优服务来训练 XGBoost 模型。 详细了解 Agent Platform 超参数调节

教程步骤

  • 使用 Python 训练应用软件包进行训练。
  • 报告超参数调优期间的准确率。
  • 使用 Cloud StorageFuse 将模型制品保存到 Cloud Storage。
  • 列出最佳模型。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Vertex AI Training
通过使用自定义容器进行的 Agent Platform Training 在 CPU 上进行针对 PyTorch 图片分类的多节点分布式数据并行训练
了解如何使用 Python 版 Agent Platform SDK 和自定义容器创建分布式 PyTorch 训练作业。 详细了解 Vertex AI Training

教程步骤

  • 设置 Google Cloud 项目
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Vertex AI Training
在 CPU 和 Agent Platform 上使用多节点 NCCL 分布式数据并行训练进行 PyTorch 图片分类
了解如何使用 Python 版 Agent Platform SDK 和自定义容器创建分布式 PyTorch 训练作业。 详细了解 Vertex AI Training

教程步骤

  • 使用 Artifact Registry 和 Docker 构建自定义容器。
  • 创建 Agent Platform TensorBoard 实例以存储 Agent Platform 实验。
  • 使用 Agent Platform SDK for Python 运行 Agent Platform 训练作业。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
自定义训练
在 Agent Platform 上训练、调优和部署 PyTorch 文本情感分类模型
了解如何在 Agent Platform 上构建、训练、调整和部署 PyTorch 模型。 详细了解自定义训练

教程步骤

  • 为文本分类模型创建训练软件包。
  • 在 Agent Platform 上对模型进行自定义训练。
  • 检查创建的模型工件。
  • 创建自定义容器以进行预测。
  • 将经过训练的模型部署到 Agent Platform 端点,并使用自定义容器进行预测。
  • 向所部署的模型发送在线预测请求并进行验证。
  • 清理在此笔记本中创建的资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform 中的 PyTorch 集成
使用 Cloud Storage 中的数据在代理平台中训练 PyTorch 模型
了解如何使用 PyTorch 以及 Cloud Storage 中存储的数据集创建训练作业。 详细了解 Agent Platform 中的 PyTorch 集成

教程步骤

  • 编写自定义训练脚本来创建训练和测试数据集并训练模型。
  • 使用 Agent Platform SDK for Python 运行 CustomTrainingJob
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
分布式训练
使用 PyTorch Torchrun 通过自定义容器简化多节点训练
了解如何在多个节点上使用 PyTorch 的 Torchrun 训练 Imagenet 模型。 详细了解分布式训练

教程步骤

  • 创建 Shell 脚本以在主节点上启动 ETCD 集群
  • 使用 PyTorch Elastic 的 GitHub 代码库中的代码创建训练脚本
  • 创建下载数据的容器,并在主机上启动 ETCD 集群
  • 使用具有 GPU 的多个节点训练模型
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
自定义训练
使用 Dask 进行分布式 XGBoost 训练
了解如何将 XGBoost 与 Dask 搭配使用来创建分布式训练作业。 详细了解自定义训练

教程步骤

  • 为您的 Google Cloud 项目配置 PROJECT_IDLOCATION 变量。
  • 创建 Cloud Storage 存储桶以存储模型制品。
  • 构建托管训练代码的自定义 Docker 容器,并将该容器映像推送到 Artifact Registry。
  • 运行 Agent Platform SDK CustomContainerTrainingJob
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
vector_search
使用 Agent Platform Multimodal Embeddings 和 Vector Search
了解如何对自定义文本嵌入进行编码、创建近似最近邻索引并针对索引进行查询。

教程步骤

  • 将图片数据集转换为嵌入。
  • 创建索引。
  • 将嵌入上传到索引。
  • 创建索引端点。
  • 将索引部署到索引端点。
  • 执行在线查询。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Vector Search
使用代理平台 Vector Search 处理 StackOverflow 问题
了解如何对自定义文本嵌入进行编码、创建近似最近邻索引并针对索引进行查询。 详细了解 Agent Platform Vector Search

教程步骤

  • 创建 ANN 索引。
  • 使用 VPC 网络创建索引端点。
  • 部署 ANN 索引。
  • 执行在线查询。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Vector Search
Agent Platform 文本嵌入
使用 Agent Platform 向量搜索和 Agent Platform 文本嵌入处理 StackOverflow 问题
了解如何对文本嵌入进行编码、创建近似最邻近索引,并针对索引进行查询。 详细了解 Agent Platform Vector Search。 详细了解 Agent Platform 文本嵌入

教程步骤

  • 将 BigQuery 数据集转换为嵌入。
  • 创建索引。
  • 将嵌入上传到索引。
  • 创建索引端点。
  • 将索引部署到索引端点。
  • 执行在线查询。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Vector Search
创建 Agent Platform Vector Search 索引
了解如何创建近似最邻近索引、针对索引进行查询,并验证索引的性能。 详细了解 Agent Platform Vector Search

教程步骤

  • 创建 ANN 索引和暴力破解索引。
  • 使用 VPC 网络创建索引端点。
  • 部署 ANN 索引和暴力破解索引。
  • 执行在线查询。
  • 计算召回率。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Vizier
使用 Agent Platform Vizier 优化多个目标
了解如何使用 Agent Platform Vizier 优化多目标研究。 详细了解 Agent Platform Vizier

教程步骤

Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Vizier
Agent Platform Vizier 使用入门
了解如何在使用 Agent Platform 进行训练时使用 Agent Platform Vizier。 详细了解 Agent Platform Vizier

教程步骤

  • 使用随机算法进行超参数调优。
  • 使用 Agent Platform Vizier(贝叶斯)算法进行超参数调优。
  • 针对 Agent Platform Vizier 研究建议试验和更新结果
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Workbench
Vertex AI Training
训练多类别分类模型以进行广告定位
了解如何从 BigQuery 收集数据、预处理数据,以及对电子商务数据集训练多类别分类模型。 详细了解 Agent Platform Workbench。 详细了解 Vertex AI Training

教程步骤

  • 从 BigQuery 中提取所需的数据
  • 预处理数据
  • 训练 TensorFlow (>=2.4) 分类模型
  • 评估经过训练的模型的损失
  • 使用执行程序功能自动执行笔记本
  • 将模型保存到 Cloud Storage 路径
  • 清理所创建的资源
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Workbench
Vertex Explainable AI
使用芝加哥出租车行程数据集预测出租车费用
此笔记本的目标是通过尝试解决出租车费用预测问题,简要介绍代理平台的功能(例如 Vertex Explainable AI 和 Notebooks 中的 BigQuery)。详细了解 Agent Platform Workbench。 详细了解 Vertex Explainable AI

教程步骤

  • 使用“笔记本中的 BigQuery”加载数据集。
  • 对数据集执行探索性数据分析。
  • 特征选择和预处理。
  • 使用 scikitlearn 构建线性回归模型。
  • 为 Vertex Explainable AI 配置模型。
  • 将模型部署到 Agent Platform。
  • 测试所部署的模型。
  • 清理。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Workbench
BigQuery ML
使用 Agent Platform 和 BigQuery ML 预测零售需求
了解如何根据零售数据构建 BigQuery ML 中的 ARIMA(自动回归集成移动平均线)模型 详细了解 Agent Platform Workbench。 详细了解 BigQuery ML

教程步骤

  • 探索数据
  • 使用 BigQuery 和 ARIMA 模型进行建模
  • 评估模型
  • 使用 BigQuery ML 评估模型结果(基于训练数据)
  • 评估模型结果 MAE、MAPE、MSE、RMSE(基于测试数据)
  • 使用执行程序功能
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Workbench
BigQuery ML
笔记本中 BigQuery 数据的交互式探索性分析
了解在 Jupyter 笔记本环境中探索 BigQuery 数据并从中获取数据洞见的各种方法。 详细了解 Agent Platform Workbench。 详细了解 BigQuery ML

教程步骤

  • 使用 Python 和 SQL 在 BigQuery 中查询公共数据
  • 使用 BigQuery INFORMATION_SCHEMA 探索数据集
  • 创建交互式元素来帮助探索数据的相关部分
  • 进行一些探索性相关和时序分析
  • 在笔记本中创建静态输出和交互式输出(数据表和绘图)
  • 将一些输出保存到 Cloud Storage
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Workbench
自定义训练
在 Agent Platform 上构建欺诈检测模型
本教程演示了如何使用合成财务数据集进行数据分析和模型构建。 详细了解 Agent Platform Workbench。 详细了解自定义训练

教程步骤

  • 安装必需的库
  • 从 Cloud Storage 存储桶读取数据集
  • 对数据集执行探索性分析
  • 预处理数据集
  • 使用 scikitlearn 训练随机森林模型
  • 将模型保存到 Cloud Storage 存储桶
  • 创建 Agent Platform 模型资源并将其部署到端点
  • 对测试数据运行 WhatIf 工具
  • 取消部署模型并清理模型资源
Colab 徽标 Colab
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Workbench
BigQuery ML
使用 Google Analytics 4 和 BigQuery ML 为游戏开发者提供的 churn 预测功能
了解如何在 BigQuery ML 中训练和评估倾向模型。 详细了解 Agent Platform Workbench。 详细了解 BigQuery ML

教程步骤

  • 在 BigQuery 中探索从 Google Analytics 4 导出的数据。
  • 使用受众特征、行为数据和标签(流失/不流失)准备训练数据。
  • 使用 BigQuery ML 训练 XGBoost 模型。
  • 使用 BigQuery ML 评估模型。
  • 使用 BigQuery ML 预测哪些用户可能会流失。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Workbench
Agent Platform 训练
使用 Agent Platform 进行预测性维护
了解如何使用 Agent Platform Workbench 的执行程序功能自动执行工作流来训练和部署模型。 详细了解 Agent Platform Workbench。 详细了解 Agent Platform 训练

教程步骤

  • 从 Cloud Storage 存储桶加载所需的数据集。
  • 分析数据集中存在的字段。
  • 选择预测性维护模型所需的数据。
  • 训练 XGBoost 回归模型以预测剩余使用寿命。
  • 评估模型。
  • 使用执行程序将笔记本作为训练作业进行端到端运行。
  • 在 Agent Platform 上部署模型。
  • 清理。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Workbench
BigQuery ML
对 CDM 价格数据进行价格优化分析
此笔记本的目标是使用 BigQuery ML 构建一个价格优化模型。 详细了解 Agent Platform Workbench。 详细了解 BigQuery ML

教程步骤

  • 从 Cloud Storage 存储桶加载所需的数据集。
  • 分析数据集中存在的字段。
  • 处理数据以构建模型。
  • 基于经过处理的数据构建 BigQuery ML 预测模型。
  • 从 BigQuery ML 模型获取预测值。
  • 解读预测结果以确定最佳价格。
  • 清理。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Workbench
Dataproc Serverless for Spark
使用 Dataproc 提取和分析 BigQuery 中的数据
本笔记本教程运行一个 Apache Spark 作业,以从 BigQuery“GitHub 活动数据”数据集提取数据、查询数据,然后将结果写回 BigQuery。 详细了解 Agent Platform Workbench。 详细了解 Dataproc Serverless for Spark

教程步骤

  • 设置 Google Cloud 项目和 Dataproc 集群。
  • 配置 sparkbigqueryconnector。
  • 将数据从 BigQuery 注入到 Spark DataFrame。
  • 预处理注入的数据。
  • 查询 Monoglot 代码库中最常用的编程语言。
  • 查询 Monoglot 代码库中存储的每种语言的代码的平均大小 (MB)。
  • 查询在 Polyglot 代码库中最常一起打包出现的语言包文件。
  • 将查询结果写回 BigQuery。
  • 删除为此笔记本教程创建的资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench
Agent Platform Workbench
Dataproc
将 SparkML 与 Dataproc 和 BigQuery 搭配使用
本教程运行一个 Apache SparkML 作业,以从 BigQuery 数据集中提取数据、执行探索性数据分析、清理数据、执行特征工程、训练模型、评估模型、输出结果,并将模型保存到 Cloud Storage 存储桶。 详细了解 Agent Platform Workbench。 详细了解 Dataproc

教程步骤

  • 设置 Google Cloud 项目和 Dataproc 集群。
  • 创建 Cloud Storage 存储桶和 BigQuery 数据集。
  • 配置 sparkbigqueryconnector。
  • 将 BigQuery 数据注入到 Spark DataFrame 中。
  • 执行探索性数据分析 (EDA)。
  • 通过示例直观呈现数据。
  • 清理数据。
  • 选择特征。
  • 训练模型。
  • 输出结果。
  • 将该模型保存到 Cloud Storage 存储桶。
  • 删除为教程创建的资源。
Colab 徽标 Colab
Colab Enterprise 徽标 Colab Enterprise
GitHub 徽标 GitHub
Vertex AI Workbench 徽标 Vertex AI Workbench