

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# Amazon SageMaker AI Boto 3 クライアントを取得する
<a name="automatic-model-tuning-ex-client"></a>

Amazon SageMaker Python SDK AWS SDK for Python (Boto3)、およびその他の Python ライブラリをインポートします。新しい Jupyter ノートブックの最初のセルに次のコードを貼り付けます。

```
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')
```

上のコードセルは、組み込みの XGBoost アルゴリズムを呼び出し、SageMaker AI ハイパーパラメータチューニングジョブを設定するために使う `region` オブジェクトと `smclient` オブジェクトを定義しています。

## 次のステップ
<a name="automatic-model-tuning-ex-next-role"></a>

[SageMaker AI の実行ロールを取得する](automatic-model-tuning-ex-role.md)