Created
October 17, 2019 12:07
-
-
Save aymericdelab/79e747cb7ead2e583abf93fb91244450 to your computer and use it in GitHub Desktop.
launch training on sagemaker
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
from sagemaker import get_execution_role | |
from sagemaker.tensorflow import TensorFlow | |
role=get_execution_role() | |
estimator = TensorFlow(entry_point='aws_entry_point.py', | |
role=role, | |
training_steps=1000, | |
train_instance_count=1, | |
train_instance_type='ml.p2.xlarge', | |
hyperparameters={ | |
'learning_rate': 0.001, | |
'batch_size' : 32 | |
}) | |
estimator.fit('s3://sagemaker-eu-west-1-107382316743/founder-classifier/data') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment