設定 Vertex AI Experiments

Python 適用的 Agent Platform SDK 和Google Cloud 控制台支援 Vertex AI Experiments。Vertex AI Experiments 必須使用 Vertex ML Metadata,且依賴該服務。

設定

  1. 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

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

  3. Enable the required API, if it is not already enabled.

    Roles required to enable APIs

    To enable APIs, you need the serviceusage.services.enable permission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.

    Enable the API

  4. 建立服務帳戶。請參閱「建立具備必要權限的服務帳戶」。
  5. 安裝 Agent Platform SDK for Python。
  6. 檢查專案中是否存在 default 中繼資料儲存庫。(必要)
    • 如要查看專案是否具備 default Metadata Store,請前往 Google Cloud 控制台的「Metadata」頁面。
    • 如果 default 中繼資料儲存庫不存在,系統會在
      • 執行第一個 PipelineJob
      • 或是在 Agent Platform SDK for Python 建立第一個實驗。
        選用:如要使用 CMEK 進行設定,請參閱「設定專案的中繼資料儲存庫」。

支援的地區

「功能可用性」表格列出 Vertex AI Experiments 的可用位置。使用 Agent Platform Pipelines 或 Vertex AI TensorBoard 時,這些服務必須與 Agent Platform 實驗位於相同位置。

後續步驟

相關筆記本教學課程

  1. 比較訓練和評估後的模型
  2. 使用預先建構的資料預先處理程式碼訓練模型
  3. 比較管道執行作業
  4. 自動記錄