【问题标题】:gcloud ml-engine IOError: file does not existgcloud ml-engine IOError:文件不存在
【发布时间】:2018-02-01 07:52:55
【问题描述】:

我在 gcloud ml-engine 中的工作崩溃了,因为火车文件不存在。在屏幕截图中,您可以在第一行看到错误。在底部我检查了目录的内容,文件显然在那里。

error screenshot

source

【问题讨论】:

  • 我认为 pandas 不支持直接从 gcloud 读取文件,这就是问题所在。

标签: python tensorflow google-cloud-platform keras google-cloud-ml


【解决方案1】:

Pandas 没有原生 GCS 支持。如果您使用的 pandas 方法接受文件对象,那么您可以使用 TensorFlow file_io 库打开文件。详细答案见here。如果没有,那么您可以先使用 gsutil cli 将文件复制到 VM。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-09-18
    • 2018-07-27
    • 1970-01-01
    • 1970-01-01
    • 2019-08-04
    • 2019-06-02
    • 2018-01-12
    相关资源
    最近更新 更多