このチュートリアルでは、 Google Cloud コンソールで表形式データモデルをトレーニングして予測を取得するために必要な手順について説明します。Vertex AI SDK for Python を使用する場合は、クライアントを初期化するサービス アカウントに Vertex AI サービス エージェント(roles/aiplatform.serviceAgent)IAM ロールが割り当てられていることを確認します。
チュートリアルのこのパートでは、Vertex AI と Cloud Storage バケットを使用するように Google Cloud プロジェクトを設定します。このバケットに AutoML モデルのトレーニングで使用するドキュメントを格納します。
プロジェクトと環境を設定する
- 
      
In the Google Cloud console, go to 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
      (
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles. 
 - 
  
    
Verify that billing is enabled for your Google Cloud project.
 - Cloud Shell を開きます。Cloud Shell は Google Cloud のインタラクティブなシェル環境であり、ウェブブラウザからプロジェクトやリソースを管理できます。 Cloud Shell に移動
 - Cloud Shell で、現在のプロジェクトを Google Cloudプロジェクト ID に設定し、
projectidシェル変数に格納します。 PROJECT_ID は、実際のプロジェクト ID に置き換えます。プロジェクト ID は Google Cloud コンソールで確認できます。詳細については、プロジェクト ID を確認するをご覧ください。gcloud config set project PROJECT_ID && projectid=PROJECT_ID && echo $projectid
 - 
  
  
    
      
Enable the IAM, Compute Engine, Notebooks, Cloud Storage, and Vertex AI APIs.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission. Learn how to grant roles. - 
    
        
Make sure that you have the following role or roles on the project: roles/aiplatform.user, roles/storage.admin
Check for the roles
- 
              
In the Google Cloud console, go to the IAM page.
Go to IAM - Select the project.
 - 
              
In the Principal column, find all rows that identify you or a group that you're included in. To learn which groups you're included in, contact your administrator.
 - For all rows that specify or include you, check the Role column to see whether the list of roles includes the required roles.
 
Grant the roles
- 
              
In the Google Cloud console, go to the IAM page.
[IAM] に移動 - プロジェクトを選択します。
 - [ アクセスを許可] をクリックします。
 - 
              
[新しいプリンシパル] フィールドに、ユーザー ID を入力します。 これは通常、Google アカウントのメールアドレスです。
 - [ロールを選択] リストでロールを選択します。
 - 追加のロールを付与するには、 [別のロールを追加] をクリックして各ロールを追加します。
 - [保存] をクリックします。
 
Vertex AI ユーザー(
roles/aiplatform.user)IAM ロールにより、Vertex AI 内のすべてのリソースを使用するためのアクセス権が付与されます。ストレージ管理者(roles/storage.admin)のロールを使用すると、ドキュメントのトレーニング データセットを Cloud Storage に保存できます。次のステップ
このチュートリアルの次のページの手順に沿って表形式のデータセットを作成し、分類モデルをトレーニングする。
 -