Obtention d’un client Amazon SageMaker AI Boto3 - Amazon SageMaker AI

Obtention d’un client Amazon SageMaker AI Boto3

Importez le kit SDK Amazon SageMaker pour Python, AWS SDK pour Python (Boto3), et d'autres bibliothèques Python. Dans un nouveau bloc-notes Jupyter, collez le code suivant dans la première cellule :

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

La cellule de code précédente définit les objets region et smclient que vous utiliserez pour appeler l’algorithme XGBoost intégré et définir la tâche de réglage d’hyperparamètres SageMaker AI.

Étape suivante

Obtention du rôle d’exécution SageMaker AI