Skip to content

Instantly share code, notes, and snippets.

@maxbrenner-ai
Last active August 25, 2020 23:49
Show Gist options
  • Save maxbrenner-ai/f86329f6d54c813f8f3f1468597cb56f to your computer and use it in GitHub Desktop.
Save maxbrenner-ai/f86329f6d54c813f8f3f1468597cb56f to your computer and use it in GitHub Desktop.
sagemaker deploy model - estimator
sess = sagemaker.session.Session()
anomaly_detection = sagemaker.estimator.Estimator(image_name=docker_image_name,
role=role,
train_instance_count=1,
train_instance_type='ml.m4.xlarge',
output_path='s3://{}/{}/output'.format(bucket, prefix),
base_job_name="anomaly-detection",
sagemaker_session=sess)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment