yaml - 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 文件。在我的情况下,这个文件的正确格式是什么?
解决方案
推荐阅读
- image - 是否可以使用相同的图像更改带有淡入淡出动画的图像?(斯威夫特用户界面)
- ruby-on-rails - Rails:NameError(未初始化的常量 UserSerializer)
- php - 如何更新codeigniter中的数据数组?
- html - 烧烤 html 和 CSS
- javascript - 我的画布绘图应用程序无法在移动设备上运行
- java - Python 属性错误“地图”对象没有属性“单元格”
- yolo - 在暗网上训练时没有出现地图/图表?
- drake - 离散多体植物的直接转录方法?
- javascript - 首次加载后保持动态标题不变
- swift - 使用蒙版时出现奇怪的阴影错误