Last active
June 7, 2020 07:43
-
-
Save findtharun/cf6d242d21e6c1e44eda13648479c32b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
base_job_name='iris-lamba-api' | |
from sagemaker.amazon.amazon_estimator import get_image_uri | |
image_name = get_image_uri(boto3.Session().region_name, 'xgboost') | |
estimator = sagemaker.estimator.Estimator( | |
sagemaker_session=sess, | |
image_name=image_name, | |
role=role, | |
train_instance_count=1, | |
train_instance_type='ml.m4.xlarge', | |
output_path='s3://{}/{}/output'.format(bucket, prefix), | |
base_job_name=base_job_name | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment