Chans

Untitled

Mar 14th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. from sagemaker.pytorch import PyTorch
  2.  
  3. estimator = PyTorch(entry_point="train.py",
  4.                     source_dir="train",
  5.                     role=role,
  6.                     framework_version='0.4.0',
  7.                     train_instance_count=1,
  8.                     train_instance_type='ml.p2.xlarge',
  9.                     hyperparameters={
  10.                         'epochs': 10,
  11.                         'hidden_dim': 200,
  12.                     })
Advertisement
Add Comment
Please, Sign In to add comment