使用数据科学智能体通过自然语言分析数据

本教程介绍如何使用 Colab Enterprise 数据科学智能体通过自然语言提示构建机器学习 (ML) 模型。

在本教程中,您将使用爱荷华州酒类零售公开数据集构建一个机器学习模型来预测酒类销量。借助这款 AI 赋能的智能体,您可以使用自然语言提示直接在笔记本中编写、解释和排查代码,从而加快数据科学工作流程。

本教程面向数据从业者。

目标

在本教程中,您将学习如何使用数据科学智能体执行以下任务:

费用

在本文档中,您将使用 Google Cloud的以下收费组件:

如需根据您的预计使用情况来估算费用,请使用价格计算器

新 Google Cloud 用户可能有资格申请免费试用

完成本文档中描述的任务后,您可以通过删除所创建的资源来避免继续计费。如需了解详情,请参阅清理

准备工作

  1. 登录您的 Google Cloud 账号。如果您是 Google Cloud新手,请 创建一个账号来评估我们的产品在实际场景中的表现。新客户还可获享 $300 赠金,用于运行、测试和部署工作负载。
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  3. Verify that billing is enabled for your Google Cloud project.

  4. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  5. Verify that billing is enabled for your Google Cloud project.

  6. 启用 BigQuery、Gemini for Google Cloud、Dataform 和 Compute Engine API。

    启用 API 所需的角色

    如需启用 API,您需要拥有 serviceusage.services.enable 权限。如果您创建了项目,则可能已经通过 Owner 角色 (roles/owner) 获得了此权限。否则,您可以通过 Service Usage Admin 角色 (roles/serviceusage.serviceUsageAdmin) 获得此权限。了解如何授予角色

    启用 API

    对于新项目,BigQuery API 会自动启用。

所需的角色

如果您创建了新项目,则您已拥有完成本教程所需的所有权限。如果您使用现有项目,请让管理员授予您以下角色。

用于创建和运行笔记本的权限

如需获得创建和运行笔记本所需的权限,请让您的管理员为您授予项目的