小编Ral*_*rig的帖子

AWS Sagemaker - ClientError:数据下载失败

问题: 我尝试在 Sagemaker 中设置模型,但是在下载数据时失败。有谁知道我做错了什么?

到目前为止我做了什么:为了避免我这边的任何错误,我决定使用 AWS 教程:tensorflow_iris_dnn_classifier_using_estimators

我只做了两个改变:

  1. 我将数据集复制到我自己的 S3 实例中。--> 我测试了我是否可以访问/显示数据并且它有效。
  2. 我编辑了路径以指向新文件夹。

这是 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

7
推荐指数
1
解决办法
3350
查看次数