This tutorial walks you through the required steps to train and get predictions
from your tabular data model in the Google Cloud console.
If you plan to use the Vertex AI SDK for Python, make sure that the service account
initializing the client has the
Vertex AI Service Agent
(roles/aiplatform.serviceAgent
) IAM role.
For this part of the tutorial, you set up your Google Cloud project to use Vertex AI and a Cloud Storage bucket that contains the documents for training your AutoML model.
Set up your project and environment
-
In the Google Cloud console, go to the project selector page.
-
Select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
- Open Cloud Shell. Cloud Shell is an interactive shell environment for Google Cloud that lets you manage your projects and resources from your web browser. Go to Cloud Shell
- In the Cloud Shell, set the current project to your Google Cloud
project ID and store it in the
projectid
shell variable: Replace PROJECT_ID with your project ID. You can locate your project ID in the Google Cloud console. For more information, see Find your project ID.gcloud config set project PROJECT_ID && projectid=PROJECT_ID && echo $projectid
-
Enable the IAM, Compute Engine, Notebooks, Cloud Storage, and Vertex AI APIs.
-
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.
Go to IAM - Select the project.
- Click Grant access.
-
In the New principals field, enter your user identifier. This is typically the email address for a Google Account.
- In the Select a role list, select a role.
- To grant additional roles, click Add another role and add each additional role.
- Click Save.
-
The Vertex AI User (roles/aiplatform.user
) IAM
role provides access to use all resources in Vertex AI. The Storage Admin
(roles/storage.admin
) role lets you store the document's
training dataset in Cloud Storage.
What's next
Follow the next page of this tutorial to create a tabular dataset and train a classification model.