Created
October 15, 2019 11:10
-
-
Save aymericdelab/a4a4c54c9bcd174da94deb0855915bf4 to your computer and use it in GitHub Desktop.
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
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 82, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"s3://sagemaker-eu-west-1-107382316743/founder-classifier/data/train.json\n", | |
"s3://sagemaker-eu-west-1-107382316743/founder-classifier/data/test.json\n" | |
] | |
} | |
], | |
"source": [ | |
"import sagemaker\n", | |
"\n", | |
"bucket = sagemaker.Session().default_bucket()\n", | |
"\n", | |
"prefix = 'founder-classifier/data'\n", | |
"\n", | |
"train_response = sagemaker.Session().upload_data(path='data/train.json', \n", | |
" bucket=bucket, \n", | |
" key_prefix=prefix)\n", | |
"\n", | |
"test_response = sagemaker.Session().upload_data(path='data/test.json', \n", | |
" bucket=bucket, \n", | |
" key_prefix=prefix)\n", | |
"\n", | |
"print(train_response)\n", | |
"print(test_response)" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "conda_tensorflow_p36", | |
"language": "python", | |
"name": "conda_tensorflow_p36" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.6.5" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment