Skip to content

Commit 9d866f6

Browse files
authored
Merge pull request #130 from awslabs/arpin_uncomment_delete
Arpin uncomment delete
2 parents 4d790a8 + 9140b64 commit 9d866f6

File tree

31 files changed

+52
-53
lines changed

31 files changed

+52
-53
lines changed

advanced_functionality/data_distribution_types/data_distribution_types.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@
720720
"source": [
721721
"### (Optional) Clean-up\n",
722722
"\n",
723-
"If you're ready to be done with this notebook, please uncomment and run the cell below. This will remove the hosted endpoints you created and avoid any charges from a stray instance being left on."
723+
"If you're ready to be done with this notebook, please run the cell below. This will remove the hosted endpoints you created and avoid any charges from a stray instance being left on."
724724
]
725725
},
726726
{
@@ -729,8 +729,8 @@
729729
"metadata": {},
730730
"outputs": [],
731731
"source": [
732-
"#sm.delete_endpoint(EndpointName=sharded_endpoint)\n",
733-
"#sm.delete_endpoint(EndpointName=replicated_endpoint)"
732+
"sm.delete_endpoint(EndpointName=sharded_endpoint)\n",
733+
"sm.delete_endpoint(EndpointName=replicated_endpoint)"
734734
]
735735
}
736736
],

advanced_functionality/handling_kms_encrypted_data/handling_kms_encrypted_data.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@
525525
"source": [
526526
"### (Optional) Delete the Endpoint\n",
527527
"\n",
528-
"If you're ready to be done with this notebook, please uncomment the delete_endpoint line in the cell below and then run it. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
528+
"If you're ready to be done with this notebook, please run the delete_endpoint line in the cell below. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
529529
]
530530
},
531531
{
@@ -534,7 +534,7 @@
534534
"metadata": {},
535535
"outputs": [],
536536
"source": [
537-
"# client.delete_endpoint(EndpointName=endpoint_name)"
537+
"client.delete_endpoint(EndpointName=endpoint_name)"
538538
]
539539
}
540540
],

advanced_functionality/kmeans_bring_your_own_model/kmeans_bring_your_own_model.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@
350350
"metadata": {},
351351
"outputs": [],
352352
"source": [
353+
"# Remove endpoint to avoid stray charges\n",
353354
"sm.delete_endpoint(EndpointName=kmeans_endpoint)"
354355
]
355356
}

advanced_functionality/r_bring_your_own/r_bring_your_own.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@
643643
"source": [
644644
"### (Optional) Clean-up\n",
645645
"\n",
646-
"If you're ready to be done with this notebook, please uncomment and run cell below. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
646+
"If you're ready to be done with this notebook, please run the cell below. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
647647
]
648648
},
649649
{
@@ -652,7 +652,7 @@
652652
"metadata": {},
653653
"outputs": [],
654654
"source": [
655-
"#sm.delete_endpoint(EndpointName=r_endpoint)"
655+
"sm.delete_endpoint(EndpointName=r_endpoint)"
656656
]
657657
}
658658
],

advanced_functionality/scikit_bring_your_own/scikit_bring_your_own.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@
497497
"metadata": {},
498498
"outputs": [],
499499
"source": [
500-
"# sess.delete_endpoint(predictor.endpoint)"
500+
"sess.delete_endpoint(predictor.endpoint)"
501501
]
502502
}
503503
],

advanced_functionality/xgboost_bring_your_own_model/xgboost_bring_your_own_model.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@
464464
"source": [
465465
"### (Optional) Delete the Endpoint\n",
466466
"\n",
467-
"If you're ready to be done with this notebook, please uncomment the delete_endpoint line in the cell below and then run it. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
467+
"If you're ready to be done with this notebook, please run the delete_endpoint line in the cell below. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
468468
]
469469
},
470470
{
@@ -475,7 +475,7 @@
475475
},
476476
"outputs": [],
477477
"source": [
478-
"# sm_client.delete_endpoint(EndpointName=endpoint_name)"
478+
"sm_client.delete_endpoint(EndpointName=endpoint_name)"
479479
]
480480
}
481481
],

introduction_to_amazon_algorithms/factorization_machines_mnist/factorization_machines_mnist.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@
380380
"source": [
381381
"### (Optional) Delete the Endpoint\n",
382382
"\n",
383-
"If you're ready to be done with this notebook, please uncomment the delete_endpoint line in the cell below and then run it. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
383+
"If you're ready to be done with this notebook, please run the delete_endpoint line in the cell below. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
384384
]
385385
},
386386
{
@@ -391,7 +391,7 @@
391391
"source": [
392392
"import sagemaker\n",
393393
"\n",
394-
"#sagemaker.Session().delete_endpoint(fm_predictor.endpoint)"
394+
"sagemaker.Session().delete_endpoint(fm_predictor.endpoint)"
395395
]
396396
}
397397
],

introduction_to_amazon_algorithms/imageclassification_caltech/Image-classification-fulltraining.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@
555555
"source": [
556556
"### Clean up\n",
557557
"\n",
558-
"When we're done with the endpoint, we can just delete it and the backing instances will be released. Uncomment and run the following cell to delete the endpoint and model"
558+
"When we're done with the endpoint, we can just delete it and the backing instances will be released. Run the following cell to delete the endpoint."
559559
]
560560
},
561561
{
@@ -566,8 +566,7 @@
566566
},
567567
"outputs": [],
568568
"source": [
569-
"#sage.delete_endpoint(EndpointName=endpoint_name)\n",
570-
"#sage.delete_model(ModelName=model_name)"
569+
"sage.delete_endpoint(EndpointName=endpoint_name)"
571570
]
572571
},
573572
{

introduction_to_amazon_algorithms/imageclassification_caltech/Image-classification-transfer-learning.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@
570570
"source": [
571571
"### Clean up\n",
572572
"\n",
573-
"When we're done with the endpoint, we can just delete it and the backing instances will be released. Uncomment and run the following cell to delete the endpoint and model"
573+
"When we're done with the endpoint, we can just delete it and the backing instances will be released. Run the following cell to delete the endpoint."
574574
]
575575
},
576576
{
@@ -581,8 +581,7 @@
581581
},
582582
"outputs": [],
583583
"source": [
584-
"#sage.delete_endpoint(EndpointName=endpoint_name)\n",
585-
"#sage.delete_model(ModelName=model_name)"
584+
"sage.delete_endpoint(EndpointName=endpoint_name)"
586585
]
587586
},
588587
{

introduction_to_amazon_algorithms/lda_topic_modeling/LDA-Introduction.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@
514514
"\n",
515515
"Finally, we should delete the endpoint before we close the notebook.\n",
516516
"\n",
517-
"To do so uncomment and execute the cell below. Alternately, you can navigate to the \"Endpoints\" tab in the SageMaker console, select the endpoint with the name stored in the variable `endpoint_name`, and select \"Delete\" from the \"Actions\" dropdown menu. "
517+
"To do so execute the cell below. Alternately, you can navigate to the \"Endpoints\" tab in the SageMaker console, select the endpoint with the name stored in the variable `endpoint_name`, and select \"Delete\" from the \"Actions\" dropdown menu. "
518518
]
519519
},
520520
{
@@ -523,7 +523,7 @@
523523
"metadata": {},
524524
"outputs": [],
525525
"source": [
526-
"#sagemaker.Session().delete_endpoint(lda_inference.endpoint)"
526+
"sagemaker.Session().delete_endpoint(lda_inference.endpoint)"
527527
]
528528
},
529529
{

introduction_to_amazon_algorithms/linear_learner_mnist/linear_learner_mnist.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@
371371
"source": [
372372
"### (Optional) Delete the Endpoint\n",
373373
"\n",
374-
"If you're ready to be done with this notebook, please uncomment the delete_endpoint line in the cell below and then run it. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
374+
"If you're ready to be done with this notebook, please run the delete_endpoint line in the cell below. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
375375
]
376376
},
377377
{
@@ -384,7 +384,7 @@
384384
"source": [
385385
"import sagemaker\n",
386386
"\n",
387-
"#sagemaker.Session().delete_endpoint(linear_predictor.endpoint)"
387+
"sagemaker.Session().delete_endpoint(linear_predictor.endpoint)"
388388
]
389389
}
390390
],

introduction_to_amazon_algorithms/ntm_synthetic/ntm_synthetic.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@
473473
"metadata": {},
474474
"outputs": [],
475475
"source": [
476-
"#sagemaker.Session().delete_endpoint(ntm_predictor.endpoint)"
476+
"sagemaker.Session().delete_endpoint(ntm_predictor.endpoint)"
477477
]
478478
},
479479
{

introduction_to_amazon_algorithms/pca_mnist/pca_mnist.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@
369369
"source": [
370370
"### (Optional) Delete the Endpoint\n",
371371
"\n",
372-
"If you're ready to be done with this notebook, please uncomment the delete_endpoint line in the cell below and then run it. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
372+
"If you're ready to be done with this notebook, please run the delete_endpoint line in the cell below. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
373373
]
374374
},
375375
{
@@ -380,7 +380,7 @@
380380
"source": [
381381
"import sagemaker\n",
382382
"\n",
383-
"#sagemaker.Session().delete_endpoint(pca_predictor.endpoint)"
383+
"sagemaker.Session().delete_endpoint(pca_predictor.endpoint)"
384384
]
385385
}
386386
],

introduction_to_amazon_algorithms/seq2seq_translation_en-de/SageMaker-Seq2Seq-Translation-English-German.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@
814814
"metadata": {},
815815
"outputs": [],
816816
"source": [
817-
"# sage.delete_endpoint(EndpointName=endpoint_name)"
817+
"sage.delete_endpoint(EndpointName=endpoint_name)"
818818
]
819819
}
820820
],

introduction_to_amazon_algorithms/xgboost_abalone/xgboost_abalone.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@
555555
},
556556
"outputs": [],
557557
"source": [
558-
"# client.delete_endpoint(EndpointName=endpoint_name)"
558+
"client.delete_endpoint(EndpointName=endpoint_name)"
559559
]
560560
}
561561
],

introduction_to_amazon_algorithms/xgboost_mnist/xgboost_mnist.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@
775775
},
776776
"outputs": [],
777777
"source": [
778-
"# sm.delete_endpoint(EndpointName=endpoint_name)"
778+
"sm.delete_endpoint(EndpointName=endpoint_name)"
779779
]
780780
}
781781
],

introduction_to_applying_machine_learning/breast_cancer_prediction/Breast Cancer Prediction.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@
638638
"cell_type": "markdown",
639639
"metadata": {},
640640
"source": [
641-
"###### Uncomment the cell below to delete endpoint once you are done."
641+
"###### Run the cell below to delete endpoint once you are done."
642642
]
643643
},
644644
{
@@ -649,7 +649,7 @@
649649
},
650650
"outputs": [],
651651
"source": [
652-
"#sm.delete_endpoint(EndpointName =linear_endpoint)"
652+
"sm.delete_endpoint(EndpointName=linear_endpoint)"
653653
]
654654
},
655655
{

introduction_to_applying_machine_learning/ensemble_modeling/EnsembleLearnerCensusIncome.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@
11711171
"cell_type": "markdown",
11721172
"metadata": {},
11731173
"source": [
1174-
"##### Uncomment below to delete endpoints once you are done."
1174+
"##### Run below to delete endpoints once you are done."
11751175
]
11761176
},
11771177
{
@@ -1180,8 +1180,8 @@
11801180
"metadata": {},
11811181
"outputs": [],
11821182
"source": [
1183-
"#sm.delete_endpoint(EndpointName =endpoint_name)\n",
1184-
"#sm.delete_endpoint(EndpointName =linear_endpoint)"
1183+
"sm.delete_endpoint(EndpointName=endpoint_name)\n",
1184+
"sm.delete_endpoint(EndpointName=linear_endpoint)"
11851185
]
11861186
},
11871187
{

introduction_to_applying_machine_learning/linear_time_series_forecast/linear_time_series_forecast.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@
561561
"source": [
562562
"### (Optional) Clean-up\n",
563563
"\n",
564-
"If you're ready to be done with this notebook, please uncomment and run cell below. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
564+
"If you're ready to be done with this notebook, please run the cell below. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
565565
]
566566
},
567567
{
@@ -570,7 +570,7 @@
570570
"metadata": {},
571571
"outputs": [],
572572
"source": [
573-
"#sagemaker.Session().delete_endpoint(linear_predictor.endpoint)"
573+
"sagemaker.Session().delete_endpoint(linear_predictor.endpoint)"
574574
]
575575
}
576576
],

introduction_to_applying_machine_learning/xgboost_customer_churn/xgboost_customer_churn.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@
620620
"source": [
621621
"### (Optional) Clean-up\n",
622622
"\n",
623-
"If you're ready to be done with this notebook, please uncomment and run cell below. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
623+
"If you're ready to be done with this notebook, please run the cell below. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
624624
]
625625
},
626626
{
@@ -629,7 +629,7 @@
629629
"metadata": {},
630630
"outputs": [],
631631
"source": [
632-
"#sagemaker.Session().delete_endpoint(xgb_predictor.endpoint)"
632+
"sagemaker.Session().delete_endpoint(xgb_predictor.endpoint)"
633633
]
634634
}
635635
],

introduction_to_applying_machine_learning/xgboost_direct_marketing/xgboost_direct_marketing_sagemaker.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@
579579
"source": [
580580
"### (Optional) Clean-up\n",
581581
"\n",
582-
"If you are done with this notebook, please uncomment and run the cell below. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
582+
"If you are done with this notebook, please run the cell below. This will remove the hosted endpoint you created and avoid any charges from a stray instance being left on."
583583
]
584584
},
585585
{
@@ -588,7 +588,7 @@
588588
"metadata": {},
589589
"outputs": [],
590590
"source": [
591-
"#sagemaker.Session().delete_endpoint(xgb_predictor.endpoint)"
591+
"sagemaker.Session().delete_endpoint(xgb_predictor.endpoint)"
592592
]
593593
}
594594
],

sagemaker-python-sdk/mxnet_gluon_cifar10/cifar10.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
"metadata": {},
235235
"outputs": [],
236236
"source": [
237-
"m.delete_endpoint()"
237+
"sagemaker.Session().delete_endpoint(predictor.endpoint)"
238238
]
239239
}
240240
],

sagemaker-python-sdk/mxnet_gluon_mnist/mnist_with_gluon.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
"metadata": {},
200200
"outputs": [],
201201
"source": [
202-
"m.delete_endpoint()"
202+
"sagemaker.Session().delete_endpoint(predictor.endpoint)"
203203
]
204204
}
205205
],

sagemaker-python-sdk/mxnet_gluon_sentiment/sentiment_analysis_with_mxnet_gluon.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
},
210210
"outputs": [],
211211
"source": [
212-
"# m.delete_endpoint()"
212+
"sagemaker.Session().delete_endpoint(predictor.endpoint)"
213213
]
214214
}
215215
],

sagemaker-python-sdk/tensorflow_abalone_age_predictor_using_keras/tensorflow_abalone_age_predictor_using_keras.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@
561561
},
562562
"outputs": [],
563563
"source": [
564-
"abalone_estimator.delete_endpoint()"
564+
"sagemaker.Session().delete_endpoint(abalone_predictor.endpoint)"
565565
]
566566
}
567567
],

sagemaker-python-sdk/tensorflow_abalone_age_predictor_using_layers/tensorflow_abalone_age_predictor_using_layers.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@
611611
},
612612
"outputs": [],
613613
"source": [
614-
"abalone_estimator.delete_endpoint()"
614+
"sagemaker.Session().delete_endpoint(abalone_predictor.endpoint)"
615615
]
616616
}
617617
],

sagemaker-python-sdk/tensorflow_distributed_mnist/tensorflow_distributed_mnist.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@
236236
},
237237
"outputs": [],
238238
"source": [
239-
"mnist_estimator.delete_endpoint()"
239+
"sagemaker.Session().delete_endpoint(mnist_predictor.endpoint)"
240240
]
241241
}
242242
],
@@ -262,4 +262,4 @@
262262
},
263263
"nbformat": 4,
264264
"nbformat_minor": 2
265-
}
265+
}

sagemaker-python-sdk/tensorflow_resnet_cifar10_with_tensorboard/tensorflow_resnet_cifar10_with_tensorboard.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
},
179179
"outputs": [],
180180
"source": [
181-
"estimator.delete_endpoint()"
181+
"sagemaker.Session().delete_endpoint(predictor.endpoint)"
182182
]
183183
}
184184
],

0 commit comments

Comments
 (0)