from sagemaker.model_monitor.dataset_format import DatasetFormat
from sagemaker import get_execution_role
s3_path = "s3://monitoring/xgb-churn-data"
monitor.suggest_baseline(
baseline_dataset=s3_path + "/training-dataset.csv",
dataset_format=DatasetFormat.csv(header=True),
output_s3_uri=s3_path + "/baseline/",
wait=True)
Python
복사