Skip to content

Instantly share code, notes, and snippets.

@shashankprasanna
Created February 12, 2020 00:21
Show Gist options
  • Save shashankprasanna/207cc48139b6cf8c38165168ba6fad09 to your computer and use it in GitHub Desktop.
Save shashankprasanna/207cc48139b6cf8c38165168ba6fad09 to your computer and use it in GitHub Desktop.
from sagemaker.estimator import Estimator
train_instance_type = 'ml.p3.2xlarge'
rapids_estimator = Estimator(image_name=image,
role=role,
train_instance_count=1,
train_instance_type=train_instance_type,
hyperparameters=hyperparams,
metric_definitions=[{'Name': 'test_acc', 'Regex': 'test_acc: ([0-9\\.]+)'}])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment