1. 预测¶
## 参数
名称 | 类型 | 是否必传 | 备注 |
——– | —– | —- | ——|
inputarg | array | Y | 字段集合 |
inputarg.#.pmml | string | Y | 机器学习模型hdfs地址,该地址从模型的节点输出获得 |
inputarg.#.tbname1 | string | Y | 输入数据表 |
## 返回
名称 | 类型 | 是否必传 | 备注 |
——– | —– | —- | ——|
result | String | Y | 所有输出的JSON,按节点类型解析 |
## 算法入口及参数
名称 | 示例 | 备注 |
——– | —- | ——|
args[0] | hdfs://namenode:9000/ispatial/pmml/test | 模型hdfs地址 |
args[1] | tmptb201906260554520008820302 | 输入表名 |
args[2] | tmptb2019062605545200088501 | 预测结果输出表名 |
1.1. # 配置模版:预测¶
#### type: 501
{
"label": "预测",
"name": "predict",
"params": {
"input_nodes": [
{
"key": "pmml",
"desc": "输入模型地址",
"type": "pmml"
},
{
"key": "tbname1",
"desc": "输入数据表",
"type": "table"
}
],
"input_form": [],
"output_nodes": [
{
"key": "output1",
"desc": "输出数据表",
"type": "table"
}
]
}
}