במדריך הזה מוסבר איך לאמן את מודל הנתונים הטבלאי במסוף Google Cloud ולקבל ממנו תחזיות.
אם אתם מתכננים להשתמש ב-Vertex AI SDK ל-Python, ודאו שלחשבון השירות שמבצע אתחול של הלקוח יש את תפקיד ה-IAM Vertex AI Service Agent (roles/aiplatform.serviceAgent).
בחלק הזה של המדריך, מגדירים את פרויקט Google Cloud לשימוש ב-Vertex AI ובקטגוריה של Cloud Storage שמכילה את המסמכים לאימון מודל 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 role
(
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ומאחסנים אותו במשתנה המעטפת
projectid: מחליפים את PROJECT_ID במזהה הפרויקט. אפשר למצוא את מזהה הפרויקט במסוף Google Cloud . מידע נוסף זמין במאמר איך מאתרים את מזהה הפרויקט.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 - בוחרים את הפרויקט.
- לוחצים על Grant access.
-
בשדה New principals, מזינים את מזהה המשתמש. בדרך כלל מזהה המשתמש הוא כתובת האימייל של חשבון Google.
- לוחצים על בחירת תפקיד ומחפשים את התפקיד.
- כדי לתת עוד תפקידים, לוחצים על Add another role ומוסיפים את כולם.
- לוחצים על Save.
תפקיד IAM של משתמש Vertex AI (
roles/aiplatform.user) מספק גישה לשימוש בכל המשאבים ב-Vertex AI. התפקיד Storage Admin (roles/storage.admin) מאפשר לכם לאחסן את מערך הנתונים לאימון של המסמך ב-Cloud Storage.המאמרים הבאים
פועלים לפי ההוראות בדף הבא של המדריך הזה כדי ליצור מערך נתונים טבלאי ולאמן מודל סיווג.
-