Skip to content

Commit

Permalink
Samples - Updated the TFX-KFP pipeline (#2867)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun authored and k8s-ci-robot committed Jan 18, 2020
1 parent c0153a0 commit daec74b
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions components/tfx/_samples/TFX_pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,8 @@
"metadata": {},
"outputs": [],
"source": [
"import kfp\n",
"\n",
"# Initializing the client\n",
"client = kfp.Client()\n",
"\n",
"# ! Use kfp.Client(host='https://xxxxx.notebooks.googleusercontent.com/') if working from GCP notebooks (or local notebooks)"
"# Put your KFP cluster endpoint URL here if working from GCP notebooks (or local notebooks). ('https://xxxxx.notebooks.googleusercontent.com/')\n",
"kfp_endpoint='https://XXXXX.notebooks.googleusercontent.com/'"
]
},
{
Expand All @@ -37,11 +33,19 @@
"metadata": {},
"outputs": [],
"source": [
"input_data_uri = 'gs://<bucket>/tensorflow-tfx/tfx/components/testdata/external/csv'\n",
"input_data_uri = 'gs://ml-pipeline-playground/tensorflow-tfx-repo/tfx/components/testdata/external/csv'\n",
"\n",
"#Only S3/GCS is supported. Replace with downloading component or GIT clone\n",
"#module_file = 'https://raw.githubusercontent.com/tensorflow/tfx/master/tfx/examples/chicago_taxi_pipeline/taxi_utils.py'\n",
"module_file = 'gs://<bucket>/tensorflow-tfx/tfx/examples/chicago_taxi_pipeline/taxi_utils.py'"
"#Only S3/GCS is supported for now.\n",
"module_file = 'gs://ml-pipeline-playground/tensorflow-tfx-repo/tfx/examples/chicago_taxi_pipeline/taxi_utils.py'"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import kfp"
]
},
{
Expand Down Expand Up @@ -129,7 +133,7 @@
" )\n",
"\n",
"\n",
"client.create_run_from_pipeline_func(\n",
"kfp.Client(host=kfp_endpoint).create_run_from_pipeline_func(\n",
" tfx_pipeline,\n",
" arguments=dict(\n",
" input_data_uri=input_data_uri,\n",
Expand Down

0 comments on commit daec74b

Please sign in to comment.