【问题标题】:ML Engine: Access Prediction LogsML Engine:访问预测日志
【发布时间】:2018-08-21 01:55:29
【问题描述】:

我想访问托管在 ML Engine 上的模型的预测日志。我看过这个答案:

Exit code non-zero and unable to see output logs

并且我启用了 StackDriver 日志记录 API。如何访问为每个模型预测生成的日志?

谢谢!

【问题讨论】:

    标签: google-cloud-ml


    【解决方案1】:

    目前,生成的日志包含元数据、Apache 日志样式(例如时间戳、一些延迟信息等)。它们确实包含请求(输入)或响应(预测)。要启用这些日志,请参阅文档:

    https://cloud.google.com/ml-engine/docs/tensorflow/prediction-overview#prediction_logging

    如果您有兴趣记录请求和响应,我们目前正在收集信息并希望了解您的要求。请联系 cloudml-feedback@google.com,我们会问您几个问题。

    【讨论】:

    • 感谢您的帮助!在文档中,我看到 You can set online prediction logging for a model by setting onlinePredictionLogging to true (True in Python) in the Model resource you use when creating your model with projects.models.create. If you use the gcloud command-line tool to create your model, include the --enable-logging flag when you run gcloud ml-engine models create. 有没有办法检查我是否启用了此功能?我正在使用一个已经在 ML Engine 上的模型。对于它的价值,看起来我确实启用了 StackDriver 日志记录 API
    • gcloud ml-engine models describe 应该告诉您有关您的模型的信息。如果你没有看到任何东西,它就没有被启用(顺便说一句,这是默认行为,因为日志会花费你额外的钱,我们默认不启用它们)。可以使用gcloud ml-engine models update 使用此设置更新现有模型,但我无法确定。
    猜你喜欢
    • 1970-01-01
    • 2019-01-09
    • 1970-01-01
    • 2018-06-23
    • 2019-08-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-29
    相关资源
    最近更新 更多