Tutorial ini memandu Anda melakukan langkah-langkah yang diperlukan untuk melatih dan mendapatkan prediksi
dari model data tabulasi di konsol Google Cloud .
Jika Anda berencana menggunakan Vertex AI SDK untuk Python, pastikan akun layanan yang menginisialisasi klien memiliki peran IAM Vertex AI Service Agent (roles/aiplatform.serviceAgent).
Untuk bagian tutorial ini, Anda akan menyiapkan project Google Cloud untuk menggunakan Vertex AI dan bucket Cloud Storage yang berisi dokumen untuk melatih model AutoML Anda.
Menyiapkan project dan lingkungan
-
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.
- Buka Cloud Shell. Cloud Shell adalah lingkungan shell interaktif untuk Google Cloud yang dapat Anda gunakan untuk mengelola project dan resource dari browser web. Buka Cloud Shell
- Di Cloud Shell, tetapkan project saat ini ke project ID Google Cloud
Anda dan simpan dalam variabel shell
projectid: Ganti PROJECT_ID dengan project ID Anda. Anda dapat menemukan project ID di konsol Google Cloud . Untuk mengetahui informasi selengkapnya, lihat Menemukan 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.
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.
Buka IAM - Pilih project.
- Klik Grant access.
-
Di kolom New principals, masukkan ID pengguna Anda. Biasanya berupa alamat email untuk Akun Google.
- Di daftar Select a role, pilih peran.
- Untuk memberikan peran tambahan, klik Tambahkan peran lain, lalu tambahkan setiap peran tambahan.
- Klik Simpan.
Peran IAM Pengguna Vertex AI (
roles/aiplatform.user) menyediakan akses untuk menggunakan semua resource di Vertex AI. Peran Storage Admin (roles/storage.admin) memungkinkan Anda menyimpan set data pelatihan dokumen di Cloud Storage.Langkah selanjutnya
Ikuti halaman berikutnya dalam tutorial ini untuk membuat set data tabulasi dan melatih model klasifikasi.
-