Get the Amazon SageMaker AI Boto 3 Client - Amazon SageMaker AI
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Get the Amazon SageMaker AI Boto 3 Client

Import Amazon SageMaker Python SDK, AWS SDK for Python (Boto3), and other Python libraries. In a new Jupyter notebook, paste the following code to the first cell:

import sagemaker import boto3 import numpy as np # For performing matrix operations and numerical processing import pandas as pd # For manipulating tabular data from time import gmtime, strftime import os region = boto3.Session().region_name smclient = boto3.Session().client('sagemaker')

The preceding code cell defines region and smclient objects that you will use to call the built-in XGBoost algorithm and set the SageMaker AI hyperparameter tuning job.

Next Step

Get the SageMaker AI Execution Role