Compare commits

...
8 Commits
6 changed files with 6 additions and 13 deletions
@@ -1005,6 +1005,7 @@
" template_path=\"tabular classification_pipeline.json\".replace(\" \", \"_\"),\n",
" pipeline_root=PIPELINE_ROOT,\n",
" parameter_values={\"project\": PROJECT_ID, \"display_name\": DISPLAY_NAME},\n",
" enable_caching=False,\n",
")\n",
"\n",
"job.submit()\n",
@@ -213,18 +213,6 @@
"! pip3 install kfp google-cloud-pipeline-components --upgrade $USER_FLAG"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "b12be5c73a33"
},
"outputs": [],
"source": [
"if os.getenv(\"IS_TESTING\"):\n",
" ! pip3 install --upgrade --force-reinstall $USER_FLAG tensorflow==2.5 kfp google-cloud-aiplatform google-cloud-storage google-cloud-pipeline-components "
]
},
{
"cell_type": "markdown",
"metadata": {
@@ -638,7 +626,6 @@
},
"outputs": [],
"source": [
"import tensorflow as tf\n",
"from google_cloud_pipeline_components import aiplatform as gcc_aip\n",
"from google_cloud_pipeline_components.experimental.custom_job import utils\n",
"from kfp.v2 import compiler, dsl\n",
@@ -1236,6 +1223,7 @@
" display_name=DISPLAY_NAME,\n",
" template_path=\"custom_model_training_spec.json\",\n",
" pipeline_root=PIPELINE_ROOT,\n",
" enable_caching=False,\n",
")\n",
"\n",
"job.run(service_account=SERVICE_ACCOUNT)\n",
@@ -812,6 +812,7 @@
" display_name=DISPLAY_NAME,\n",
" template_path=\"image classification_pipeline.json\".replace(\" \", \"_\"),\n",
" pipeline_root=PIPELINE_ROOT,\n",
" enable_caching=False,\n",
")\n",
"\n",
"job.run()\n",
@@ -825,6 +825,7 @@
" display_name=DISPLAY_NAME,\n",
" template_path=\"tabular regression_pipeline.json\".replace(\" \", \"_\"),\n",
" pipeline_root=PIPELINE_ROOT,\n",
" enable_caching=False,\n",
")\n",
"\n",
"job.run()\n",
@@ -816,6 +816,7 @@
" display_name=DISPLAY_NAME,\n",
" template_path=\"text classification_pipeline.json\".replace(\" \", \"_\"),\n",
" pipeline_root=PIPELINE_ROOT,\n",
" enable_caching=False,\n",
")\n",
"\n",
"job.run()\n",
@@ -849,6 +849,7 @@
" display_name=DISPLAY_NAME,\n",
" template_path=\"tabular regression_pipeline.json\".replace(\" \", \"_\"),\n",
" pipeline_root=PIPELINE_ROOT,\n",
" enable_caching=False,\n",
")\n",
"\n",
"job.run()\n",