Get the Amazon SageMaker Boto 3 Client - Amazon SageMaker
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Get the Amazon SageMaker Boto 3 Client

Import Amazon SageMaker Python SDK, Amazon 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 hyperparameter tuning job.

Next Step

Get the SageMaker Execution Role