= sagemaker.estimator.Estimator(containers[boto3.Session().region_name], role, train_instance_count=1, train_instance_type='ml.m4.4xlarge', output_path='s3://{}/{}/output'.format(bucket, prefix), sagemaker_session=sess) xgb.set_hyperparameters(eta=0.1, objective='multi:softmax’, num_class=10, num_round=25) xgb.fit({'train': train_input, 'validation': valid_input}, job_name = 'xgboost-classification')