MLHelper


执行项目流程

[TOC]

简要描述
  • 执行项目
请求URL
  • /RunJob
请求方式
  • POST
参数
参数名 必选 类型 说明
jobid string 用户名
config dict 执行参数
name string 模块名称
type string 方法名称
packid string 方法id,默认null
param dict 参数
cache string 缓存方式,默认all
children string 递归config
请求示例
  {
    "jobid": "47aeb269-bd45-405a-90cc-d1d3e8c4b938",
    "config": {
        "name":"source",
        "type":"sql",
        "packid":null,
        "param":{
            "num":100,
            "sql":"select * from xmr_test",
            "dbtype":"mysql",
            "info":{
                "host":"127.0.0.1",
                "port":3306,
                "dbtype":"mysql",
                "database":"test",
                "user":"root",
                "password":"123456"
                },
            "model":"normal"
            },
        "cache":"cache",
        "children":[
                {
                "name":"dtransform",
                "type":"add_col",
                "packid":null,
                "param":{
                    "col":"hhhhhh",
                    "funcstr":"{spcdata}+100"
                    },
                "cache":"cache",
                "children":[
                            {
                        "name":"dtransform",
                        "type":"add_col",
                        "packid":null,
                        "param":{
                            "col":"xxxxxx",
                            "funcstr":"{spcdata}+50"
                            },
                        "cache":"cache",
                        "children":[
                            ]
                        }
                    ]
                }
            ]
        }
    }
  }
返回参数说明
参数名 类型 说明
status int 响应状态码
result dict 返回结果
message string 响应状态信息
返回示例
{
  "result": {
    "47aeb269-bd45-405a-90cc-d1d3e8c4b938": {
      "name": "source",
      "type": "sql",
      "packid": "38f21c4b-6784-434a-8887-5275f7f19ba4",
      "param": {
        "num": 100,
        "alis": "",
        "sql": "select * from xmr_test",
        "dbtype": "mysql",
        "info": {
          "host": "127.0.0.1",
          "port": 3306,
          "dbtype": "mysql",
          "database": "test",
          "user": "root",
          "password": "123456"
        },
        "model": "simple"
      },
      "cache": "cache",
      "children": [
        {
          "name": "dtransform",
          "type": "add_col",
          "alis": "",
          "packid": "f933cf3e-0dba-4db3-aaf5-08eb41e9a781",
          "param": {
            "add_dict": [
              {
                "col": "hhhhhh",
                "funcstr": "{spcdata}+100"
              }
            ]
          },
          "cache": "cache",
          "children": [
            {
              "name": "discretisation",
              "type": "ml",
              "alis": "",
              "packid": "d3e0ad64-604b-4088-8397-52b41aaa5cc4",
              "param": {
                "variables": [
                  "hhhhhh"
                ],
                "cv": 3,
                "scoring": "neg_mean_squared_error",
                "regression": true,
                "param_grid": null,
                "y": [
                  "spcdata"
                ]
              },
              "cache": "cache",
              "children": []
            }
          ]
        },
        {
          "name": "dtransform",
          "type": "add_col",
          "alis": "",
          "packid": "f2eca158-7ec3-4507-9d49-84b0edf67d48",
          "param": {
            "add_dict": [
              {
                "col": "xxxxxxx",
                "funcstr": "{spcdata}+50"
              }
            ]
          },
          "cache": "cache",
          "children": []
        }
      ]
    },
    "type": "job_param"
  },
  "status": 200,
  "message": "查询成功"
}
  • 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML