Skip to content

Instantly share code, notes, and snippets.

@EniasCailliau
Last active August 23, 2018 12:34
Show Gist options
  • Save EniasCailliau/ce9ca217fd3377d266569cff1bdd7597 to your computer and use it in GitHub Desktop.
Save EniasCailliau/ce9ca217fd3377d266569cff1bdd7597 to your computer and use it in GitHub Desktop.
convert_mnist_fashion_dataset(train_images, train_labels, 'train', 'data')
convert_mnist_fashion_dataset(test_images, test_labels, 'validation', 'data')
import sagemaker
bucket = sagemaker.Session().default_bucket() # Automatically create a bucket
prefix = 'radix/mnist_fashion_tutorial' # Subfolder prefix
s3_url = sagemaker.Session().upload_data(path='data',
bucket=bucket,
key_prefix=prefix+'/data/mnist')
print(s3_url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment