Skip to content

Instantly share code, notes, and snippets.

@shashankprasanna
Created February 12, 2020 00:18
Show Gist options
  • Save shashankprasanna/5a1fd0d77eaf4fe2cf99296d13cca01a to your computer and use it in GitHub Desktop.
Save shashankprasanna/5a1fd0d77eaf4fe2cf99296d13cca01a to your computer and use it in GitHub Desktop.
from sagemaker.estimator import Estimator
train_instance_type = 'local_gpu'
local_data_dir = 'file://./dataset'
rapids_estimator = Estimator(image_name='sagemaker-rapids:latest',
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