Skip to content

Commit 2ac275c

Browse files
committed
Fixed: updated sagemaker-runtime to runtime.sagemaker. Awaiting confirmation.
1 parent d5681a0 commit 2ac275c

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed

advanced_functionality/data_distribution_types/data_distribution_types.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@
661661
" rows = 5. * 1024. * 1024. / sys.getsizeof(np2csv(data[0, :]))\n",
662662
" split_array = np.array_split(data, int(data.shape[0] / float(rows) + 1))\n",
663663
" predictions = []\n",
664-
" runtime = boto3.Session().client('sagemaker-runtime')\n",
664+
" runtime = boto3.Session().client('runtime.sagemaker')\n",
665665
" for array in split_array:\n",
666666
" payload = np2csv(array)\n",
667667
" response = runtime.invoke_endpoint(EndpointName=endpoint,\n",

advanced_functionality/handling_kms_encrypted_data/handling_kms_encrypted_data.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@
452452
},
453453
"outputs": [],
454454
"source": [
455-
"runtime_client = boto3.client('sagemaker-runtime')"
455+
"runtime_client = boto3.client('runtime.sagemaker')"
456456
]
457457
},
458458
{

advanced_functionality/kmeans_bring_your_own_model/kmeans_bring_your_own_model.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
"metadata": {},
308308
"outputs": [],
309309
"source": [
310-
"runtime = boto3.Session().client('sagemaker-runtime')\n",
310+
"runtime = boto3.Session().client('runtime.sagemaker')\n",
311311
"\n",
312312
"payload = np2csv(train_set[0][0:100])\n",
313313
"response = runtime.invoke_endpoint(EndpointName=kmeans_endpoint,\n",

advanced_functionality/r_bring_your_own/r_bring_your_own.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@
597597
"source": [
598598
"iris = pd.read_csv('iris.csv')\n",
599599
"\n",
600-
"runtime = boto3.Session().client('sagemaker-runtime')\n",
600+
"runtime = boto3.Session().client('runtime.sagemaker')\n",
601601
"\n",
602602
"payload = iris.drop(['Sepal.Length'], axis=1).to_csv(index=False)\n",
603603
"response = runtime.invoke_endpoint(EndpointName=r_endpoint,\n",

advanced_functionality/xgboost_bring_your_own_model/xgboost_bring_your_own_model.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@
387387
},
388388
"outputs": [],
389389
"source": [
390-
"runtime_client = boto3.client('sagemaker-runtime')"
390+
"runtime_client = boto3.client('runtime.sagemaker')"
391391
]
392392
},
393393
{

introduction_to_amazon_algorithms/imageclassification_caltech/Image-classification-fulltraining.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@
497497
"outputs": [],
498498
"source": [
499499
"import boto3\n",
500-
"runtime = boto3.Session().client(service_name='sagemaker-runtime') "
500+
"runtime = boto3.Session().client(service_name='runtime.sagemaker') "
501501
]
502502
},
503503
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@
513513
"outputs": [],
514514
"source": [
515515
"import boto3\n",
516-
"runtime = boto3.Session().client(service_name='sagemaker-runtime') "
516+
"runtime = boto3.Session().client(service_name='runtime.sagemaker') "
517517
]
518518
},
519519
{

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
@@ -545,7 +545,7 @@
545545
},
546546
"outputs": [],
547547
"source": [
548-
"runtime = boto3.client(service_name='sagemaker-runtime') "
548+
"runtime = boto3.client(service_name='runtime.sagemaker') "
549549
]
550550
},
551551
{

introduction_to_amazon_algorithms/xgboost_abalone/xgboost_abalone.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@
417417
},
418418
"outputs": [],
419419
"source": [
420-
"runtime_client = boto3.client('sagemaker-runtime')"
420+
"runtime_client = boto3.client('runtime.sagemaker')"
421421
]
422422
},
423423
{

introduction_to_amazon_algorithms/xgboost_mnist/xgboost_mnist.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@
529529
},
530530
"outputs": [],
531531
"source": [
532-
"runtime_client = boto3.client('sagemaker-runtime')"
532+
"runtime_client = boto3.client('runtime.sagemaker')"
533533
]
534534
},
535535
{

introduction_to_applying_machine_learning/breast_cancer_prediction/Breast Cancer Prediction.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@
577577
},
578578
"outputs": [],
579579
"source": [
580-
"runtime= boto3.client('sagemaker-runtime')\n",
580+
"runtime= boto3.client('runtime.sagemaker')\n",
581581
"\n",
582582
"payload = np2csv(test_X)\n",
583583
"response = runtime.invoke_endpoint(EndpointName=linear_endpoint,\n",

introduction_to_applying_machine_learning/ensemble_modeling/EnsembleLearnerCensusIncome.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@
566566
"metadata": {},
567567
"outputs": [],
568568
"source": [
569-
"runtime= boto3.client('sagemaker-runtime')\n"
569+
"runtime= boto3.client('runtime.sagemaker')\n"
570570
]
571571
},
572572
{

sagemaker-python-sdk/1P_kmeans_lowlevel/kmeans_mnist_lowlevel.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@
384384
"metadata": {},
385385
"outputs": [],
386386
"source": [
387-
"runtime = boto3.Session().client('sagemaker-runtime')"
387+
"runtime = boto3.Session().client('runtime.sagemaker')"
388388
]
389389
},
390390
{

0 commit comments

Comments
 (0)