GoogleCloudPlatform / mlops-with-vertex-ai

An end-to-end example of MLOps on Google Cloud using TensorFlow, TFX, and Vertex AI
Apache License 2.0
341 stars 117 forks source link

google.api_core.exceptions.PermissionDenied: 403 Permission denied on resource project {PROJECT}. #5

Open redcican opened 2 years ago

redcican commented 2 years ago

hi, i followed your tutorials and everything was fine until Notebook 6, When I tried to Run create endpoint section.

!python build/utils.py \ --mode=create-endpoint\ --project={PROJECT}\ --region=us-central1\ --endpoint-display-name={ENDPOINT_DISPLAY_NAME} I had this error: google.api_core.exceptions.PermissionDenied: 403 Permission denied on resource project {PROJECT}. Any suggestions?

ksalama commented 2 years ago

Could you make sure to set PROJECT to your GCP project Id?

redcican commented 2 years ago

Could you make sure to set PROJECT to your GCP project Id?

I am sure that is my project id, but it won't work. Can I ask you another question? If I have a multi-class classification problem, say the label is already integer like "1,2,3,4,5,6,7", should I one-hot them firstly? Or I just need to use "softmax" function? If i need to one-hot them, where should I do it?