Skip to content

Commit 5a7804b

Browse files
gogascaandrewferlitsch
authored andcommitted
Update gcloud sdk command to ai-platform (#2360)
Update gcloud sdk command to ai-platform
1 parent cc7c8e0 commit 5a7804b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

notebooks/tutorials/cloud-ml-engine/Training and prediction with scikit-learn.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,11 @@
315315
"source": [
316316
"# Submit the training job\n",
317317
"\n",
318-
"In this section, you use [`gcloud ml-engine jobs submit training`](https://cloud.google.com/sdk/gcloud/reference/ml-engine/jobs/submit/training) to submit your training job. The `--` argument passed to the command is a separator; anything after the separator will be passed to the Python code as input arguments.\n",
318+
"In this section, you use [`gcloud ai-platform jobs submit training`](https://cloud.google.com/sdk/gcloud/reference/ai-platform/jobs/submit/training) to submit your training job. The `--` argument passed to the command is a separator; anything after the separator will be passed to the Python code as input arguments.\n",
319319
"\n",
320320
"For more information about the arguments preceeding the separator, run the following:\n",
321321
"\n",
322-
" gcloud ml-engine jobs submit training --help\n",
322+
" gcloud ai-platform jobs submit training --help\n",
323323
"\n",
324324
"The argument given to the python script is `--bucket-name`. The `--bucket-name` argument is used to specify the name of the bucket to save the model file."
325325
]
@@ -347,7 +347,7 @@
347347
"outputs": [],
348348
"source": [
349349
"# Submit the training job:\n",
350-
"!gcloud ml-engine jobs submit training $JOB_NAME \\\n",
350+
"!gcloud ai-platform jobs submit training $JOB_NAME \\\n",
351351
" --job-dir gs://$BUCKET_NAME/census_job_dir \\\n",
352352
" --package-path ./census_training \\\n",
353353
" --module-name census_training.train \\\n",
@@ -419,7 +419,7 @@
419419
"metadata": {},
420420
"outputs": [],
421421
"source": [
422-
"!gcloud ml-engine models create $MODEL_NAME --regions us-central1"
422+
"!gcloud ai-platform models create $MODEL_NAME --regions us-central1"
423423
]
424424
},
425425
{
@@ -435,7 +435,7 @@
435435
"metadata": {},
436436
"outputs": [],
437437
"source": [
438-
"!gcloud ml-engine versions create $VERSION_NAME \\\n",
438+
"!gcloud ai-platform versions create $VERSION_NAME \\\n",
439439
" --model=$MODEL_NAME \\\n",
440440
" --framework=scikit-learn \\\n",
441441
" --origin=gs://$BUCKET_NAME/ \\\n",
@@ -506,7 +506,7 @@
506506
},
507507
"outputs": [],
508508
"source": [
509-
"!gcloud ml-engine predict --model $MODEL_NAME --version \\\n",
509+
"!gcloud ai-platform predict --model $MODEL_NAME --version \\\n",
510510
" $VERSION_NAME --json-instances $INPUT_FILE"
511511
]
512512
},
@@ -533,10 +533,10 @@
533533
"outputs": [],
534534
"source": [
535535
"# Delete the model version\n",
536-
"!gcloud ml-engine versions delete $VERSION_NAME --model=$MODEL_NAME --quiet\n",
536+
"!gcloud ai-platform versions delete $VERSION_NAME --model=$MODEL_NAME --quiet\n",
537537
"\n",
538538
"# Delete the model\n",
539-
"!gcloud ml-engine models delete $MODEL_NAME --quiet\n",
539+
"!gcloud ai-platform models delete $MODEL_NAME --quiet\n",
540540
"\n",
541541
"# Delete the bucket and contents\n",
542542
"!gsutil rm -r gs://$BUCKET_NAME\n",

0 commit comments

Comments
 (0)