Skip to content

Commit cc3bbc7

Browse files
Updated sagemaker attribute configurations for V2 SDK support (#1636)
Co-authored-by: Aaron Markham <[email protected]>
1 parent 596311d commit cc3bbc7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

introduction_to_amazon_algorithms/pca_mnist/pca_mnist.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@
319319
"source": [
320320
"from sagemaker.predictor import csv_serializer, json_deserializer\n",
321321
"\n",
322-
"pca_predictor.content_type = 'text/csv'\n",
323322
"pca_predictor.serializer = csv_serializer\n",
324323
"pca_predictor.deserializer = json_deserializer"
325324
]
@@ -409,7 +408,7 @@
409408
"source": [
410409
"import sagemaker\n",
411410
"\n",
412-
"sagemaker.Session().delete_endpoint(pca_predictor.endpoint)"
411+
"sagemaker.Session().delete_endpoint(pca_predictor.endpoint_name)"
413412
]
414413
}
415414
],
@@ -436,4 +435,4 @@
436435
},
437436
"nbformat": 4,
438437
"nbformat_minor": 2
439-
}
438+
}

0 commit comments

Comments
 (0)