问题: 我尝试在 Sagemaker 中设置模型,但是在下载数据时失败。有谁知道我做错了什么?
到目前为止我做了什么:为了避免我这边的任何错误,我决定使用 AWS 教程:tensorflow_iris_dnn_classifier_using_estimators
我只做了两个改变:
这是 AWS 源代码:https : //github.com/awslabs/amazon-sagemaker-examples/tree/master/sagemaker-python-sdk/tensorflow_iris_dnn_classifier_using_estimators
%%time
import boto3
# use the region-specific sample data bucket
region = boto3.Session().region_name
#train_data_location = 's3://sagemaker-sample-data-{}/tensorflow/iris'.format(region)
train_data_location = 's3://my-s3-bucket'
iris_estimator.fit(train_data_location)
Run Code Online (Sandbox Code Playgroud)
这是我得到的错误:
/home/ec2-user/anaconda3/envs/tensorflow_p27/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in run_cell_magic(self, magic_name, line, cell)
2115 magic_arg_s = self.var_expand(line, stack_depth)
2116 with self.builtin_trap:
-> 2117 result = fn(magic_arg_s, cell)
2118 return result
2119
<decorator-gen-60> in time(self, line, cell, local_ns)
/home/ec2-user/anaconda3/envs/tensorflow_p27/lib/python2.7/site-packages/IPython/core/magic.pyc in <lambda>(f, *a, **k)
186 # but it's …Run Code Online (Sandbox Code Playgroud) python amazon-web-services jupyter tensorflow amazon-sagemaker