Compare commits

...
Author SHA1 Message Date
Andrew FerlitschandGitHub 378595a6ad fix REGION 2023-09-28 09:40:29 -07:00
Andrew Ferlitsch aee4ec2590 continue to debug 2023-09-27 20:31:32 +00:00
Andrew Ferlitsch f2a12308b1 continue to debug 2023-09-27 19:37:34 +00:00
Andrew Ferlitsch c8c44a5a04 fix: CI/CD failure 2023-09-27 17:27:29 +00:00
@@ -320,7 +320,7 @@
},
"outputs": [],
"source": [
"! gsutil mb -l $REGION $BUCKET_URI"
"! gsutil mb -l {REGION} {BUCKET_URI}"
]
},
{
@@ -353,6 +353,10 @@
},
"outputs": [],
"source": [
"import sys\n",
"\n",
"IS_COLAB = \"google.colab\" in sys.modules\n",
"\n",
"if (\n",
" SERVICE_ACCOUNT == \"\"\n",
" or SERVICE_ACCOUNT is None\n",
@@ -969,16 +973,19 @@
},
"outputs": [],
"source": [
"EVAL_QUERY = f\"\"\"\n",
"SELECT *\n",
"FROM\n",
" ML.EVALUATE(MODEL {BQ_DATASET_NAME}.{MODEL_NAME})\n",
"ORDER BY roc_auc desc\n",
"LIMIT 1\"\"\"\n",
"try:\n",
" EVAL_QUERY = f\"\"\"\n",
" SELECT *\n",
" FROM\n",
" ML.EVALUATE(MODEL {BQ_DATASET_NAME}.{MODEL_NAME})\n",
" ORDER BY roc_auc desc\n",
" LIMIT 1\"\"\"\n",
"\n",
"job = bqclient.query(EVAL_QUERY)\n",
"results = job.result().to_dataframe()\n",
"print(results)"
" job = bqclient.query(EVAL_QUERY)\n",
" results = job.result().to_dataframe()\n",
" print(results)\n",
"except Exception as e:\n",
" print(e)"
]
},
{
@@ -1260,8 +1267,11 @@
"outputs": [],
"source": [
"# Delete the endpoint using the Vertex endpoint object\n",
"endpoint.undeploy_all()\n",
"endpoint.delete()\n",
"try:\n",
" endpoint.undeploy_all()\n",
" endpoint.delete()\n",
"except Exception as e:\n",
" print(e)\n",
"\n",
"# Delete the model using the Vertex model object\n",
"try:\n",