|
173 | 173 | ")\n",
|
174 | 174 | "def gh_summ( #pylint: disable=unused-argument\n",
|
175 | 175 | " train_steps: 'Integer' = 2019300,\n",
|
176 |
| - " project: String = 'YOUR_PROJECT_HERE',\n", |
177 |
| - " github_token: String = 'YOUR_GITHUB_TOKEN_HERE',\n", |
178 |
| - " working_dir: GCSPath = 'YOUR_GCS_DIR_HERE',\n", |
179 |
| - " checkpoint_dir: GCSPath = 'gs://aju-dev-demos-codelabs/kubecon/model_output_tbase.bak2019000/',\n", |
180 |
| - " deploy_webapp: String = 'true',\n", |
181 |
| - " data_dir: GCSPath = 'gs://aju-dev-demos-codelabs/kubecon/t2t_data_gh_all/'\n", |
| 176 | + " project: str = 'YOUR_PROJECT_HERE',\n", |
| 177 | + " github_token: str = 'YOUR_GITHUB_TOKEN_HERE',\n", |
| 178 | + " working_dir: 'GCSPath' = 'YOUR_GCS_DIR_HERE',\n", |
| 179 | + " checkpoint_dir: 'GCSPath' = 'gs://aju-dev-demos-codelabs/kubecon/model_output_tbase.bak2019000/',\n", |
| 180 | + " deploy_webapp: str = 'true',\n", |
| 181 | + " data_dir: 'GCSPath' = 'gs://aju-dev-demos-codelabs/kubecon/t2t_data_gh_all/'\n", |
182 | 182 | " ):\n",
|
183 | 183 | "\n",
|
184 | 184 | "\n",
|
|
266 | 266 | "source": [
|
267 | 267 | "# You'd uncomment this call to actually run the pipeline. \n",
|
268 | 268 | "# run = client.run_pipeline(exp.id, 'ghsumm', 'ghsumm.tar.gz',\n",
|
269 |
| - "# params={'working-dir': WORKING_DIR,\n", |
270 |
| - "# 'github-token': GITHUB_TOKEN,\n", |
| 269 | + "# params={'working_dir': WORKING_DIR,\n", |
| 270 | + "# 'github_token': GITHUB_TOKEN,\n", |
271 | 271 | "# 'project': PROJECT_NAME})"
|
272 | 272 | ]
|
273 | 273 | },
|
|
329 | 329 | ")\n",
|
330 | 330 | "def gh_summ2(\n",
|
331 | 331 | " train_steps: 'Integer' = 2019300,\n",
|
332 |
| - " project: String = 'YOUR_PROJECT_HERE',\n", |
333 |
| - " github_token: String = 'YOUR_GITHUB_TOKEN_HERE',\n", |
334 |
| - " working_dir: GCSPath = 'YOUR_GCS_DIR_HERE',\n", |
335 |
| - " checkpoint_dir: GCSPath = 'gs://aju-dev-demos-codelabs/kubecon/model_output_tbase.bak2019000/',\n", |
336 |
| - " deploy_webapp: String = 'true',\n", |
337 |
| - " data_dir: GCSPath = 'gs://aju-dev-demos-codelabs/kubecon/t2t_data_gh_all/'\n", |
| 332 | + " project: str = 'YOUR_PROJECT_HERE',\n", |
| 333 | + " github_token: str = 'YOUR_GITHUB_TOKEN_HERE',\n", |
| 334 | + " working_dir: 'GCSPath' = 'YOUR_GCS_DIR_HERE',\n", |
| 335 | + " checkpoint_dir: 'GCSPath' = 'gs://aju-dev-demos-codelabs/kubecon/model_output_tbase.bak2019000/',\n", |
| 336 | + " deploy_webapp: str = 'true',\n", |
| 337 | + " data_dir: 'GCSPath' = 'gs://aju-dev-demos-codelabs/kubecon/t2t_data_gh_all/'\n", |
338 | 338 | " ):\n",
|
339 | 339 | "\n",
|
340 | 340 | " # The new pre-processing op.\n",
|
|
418 | 418 | "outputs": [],
|
419 | 419 | "source": [
|
420 | 420 | "run = client.run_pipeline(exp.id, 'ghsumm2', 'ghsumm2.tar.gz',\n",
|
421 |
| - " params={'working-dir': WORKING_DIR,\n", |
422 |
| - " 'github-token': GITHUB_TOKEN,\n", |
423 |
| - " 'deploy-webapp': DEPLOY_WEBAPP,\n", |
| 421 | + " params={'working_dir': WORKING_DIR,\n", |
| 422 | + " 'github_token': GITHUB_TOKEN,\n", |
| 423 | + " 'deploy_webapp': DEPLOY_WEBAPP,\n", |
424 | 424 | " 'project': PROJECT_NAME})"
|
425 | 425 | ]
|
426 | 426 | },
|
|
0 commit comments