【问题标题】:Train Tensorflow Model in Google Cloud ML Engine in Python使用 Python 在 Google Cloud ML Engine 中训练 TensorFlow 模型
【发布时间】:2018-03-24 05:41:48
【问题描述】:

我可以在不使用命令行的情况下在 python 中训练谷歌云机器学习引擎中的 Tensorflow 模型吗:

     `gcloud ml-engine jobs submit training $JOB_NAME \
          --job-dir $OUTPUT_PATH \
          --runtime-version 1.2 \
          --module-name trainer.task \
          --package-path trainer/ \
          --region $REGION \ `

我的目标是从我的 python 脚本运行任务

【问题讨论】:

    标签: tensorflow google-cloud-platform google-cloud-ml google-cloud-ml-engine


    【解决方案1】:

    是的。 gcloud ml-engine 只是 CloudML Engine REST API 的 CLI。 API 文档可以在here 找到。示例代码可以找到here;点击 Python 选项卡。

    【讨论】:

      【解决方案2】:

      您可以使用 REST API 或通过 REST API 编写的不同语言的库。

      这里是 Google API PHP 客户端服务link。您可以参考 github.com/boaloysius/google-ml-engine-rest。

      这里是对https://cloud.google.com/ml-engine/docs/python-guide的引用。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-11-08
        • 2019-08-02
        • 1970-01-01
        • 1970-01-01
        • 2018-06-06
        相关资源
        最近更新 更多