שלום נתונים טבלאיים: הגדרה של הפרויקט והסביבה

במדריך הזה מוסבר איך לאמן את מודל הנתונים הטבלאי במסוף Google Cloud ולקבל ממנו תחזיות. אם אתם מתכננים להשתמש ב-Vertex AI SDK ל-Python, ודאו שלחשבון השירות שמבצע אתחול של הלקוח יש את תפקיד ה-IAM ‏Vertex AI Service Agent ‏(roles/aiplatform.serviceAgent).

בחלק הזה של המדריך, מגדירים את פרויקט Google Cloud לשימוש ב-Vertex AI ובקטגוריה של Cloud Storage שמכילה את המסמכים לאימון מודל AutoML.

הגדרת הפרויקט והסביבה

  1. In the Google Cloud console, go to the project selector page.

    Go to project selector

  2. 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.
  3. Verify that billing is enabled for your Google Cloud project.

  4. פותחים את Cloud Shell: ‫Cloud Shell היא סביבת מעטפת אינטראקטיבית של Google Cloud שמאפשרת לכם לנהל את הפרויקטים והמשאבים שלכם מדפדפן האינטרנט.
  5. כניסה ל-Cloud Shell
  6. ב-Cloud Shell, מגדירים את הפרויקט הנוכחי למזהה הפרויקט Google Cloudומאחסנים אותו במשתנה המעטפת projectid:
      gcloud config set project PROJECT_ID &&
      projectid=PROJECT_ID &&
      echo $projectid
    מחליפים את PROJECT_ID במזהה הפרויקט. אפשר למצוא את מזהה הפרויקט במסוף Google Cloud . מידע נוסף זמין במאמר איך מאתרים את מזהה הפרויקט.
  7. 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 the serviceusage.services.enable permission. Learn how to grant roles.

    Enable the APIs

  8. Make sure that you have the following role or roles on the project: roles/aiplatform.user, roles/storage.admin

    Check for the roles

    1. In the Google Cloud console, go to the IAM page.

      Go to IAM
    2. Select the project.
    3. 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.

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

    1. In the Google Cloud console, go to the IAM page.

      כניסה לדף IAM

    2. בוחרים את הפרויקט.
    3. לוחצים על ‎ Grant access.
    4. בשדה New principals, מזינים את מזהה המשתמש. ‫ בדרך כלל מזהה המשתמש הוא כתובת האימייל של חשבון Google.

    5. לוחצים על בחירת תפקיד ומחפשים את התפקיד.
    6. כדי לתת עוד תפקידים, לוחצים על Add another role ומוסיפים את כולם.
    7. לוחצים על Save.

    תפקיד IAM של משתמש Vertex AI‏ (roles/aiplatform.user) מספק גישה לשימוש בכל המשאבים ב-Vertex AI. התפקיד Storage Admin (roles/storage.admin) מאפשר לכם לאחסן את מערך הנתונים לאימון של המסמך ב-Cloud Storage.

    המאמרים הבאים

    פועלים לפי ההוראות בדף הבא של המדריך הזה כדי ליצור מערך נתונים טבלאי ולאמן מודל סיווג.