This line:

runtime = boto3.Session().client(service_name=’sagemaker-sagemaker’,region_name=’us-east-1')

Should be:

runtime = boto3.Session().client(service_name=’runtime.sagemaker’,region_name=’us-east-1')

Per your note, you should be using runtime-sagemaker.

Data Scientist, Artificial Intelligence, Machine Learning, Author of “Artificial Intelligence with Python”

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store