首页 > 解决方案 > Swagger YAML 的输入和输出格式

问题描述

我按照以下教程在 Google Cloud 中创建我的机器学习应用程序: https ://github.com/GoogleCloudPlatform/ml-on-gcp/tree/master/sklearn/gae_serve#steps

我首先需要构建一个“modelserve.yaml”来定义我的输入和输出,例如这个文件: https ://github.com/GoogleCloudPlatform/ml-on-gcp/blob/master/sklearn/gae_serve/default/modelserve .yaml

我知道我的输入有多行字符串,输出有多行双数(1.0 和 0.0)。我在这个问题中描述了它: Google cloud ML with Scikit-Learn raises: 'dict' object has no attribute 'lower'

现在我找不到相关文档来说明如何构建这个 YAML 文件。在我的情况下,这个文件的正确格式是什么?

标签: yamlswaggergoogle-cloud-ml

解决方案


推荐阅读