Model
描述
opensearch 应用算法模型
示例
{
"id": 113023,
"groupId": "100297752",
"groupName": "appGroupName",
"type": "pop",
"name": "pop_1212",
"trainTarget": "ctr",
"cron": "15 0 */2 * *",
"cronEnabled": true,
"behaviorEnabled": true,
"behaviorFromGroupName": "DemoModelName",
"lastTrainingTime": 1543233439000,
"auc": 0.85,
"status": "train_success",
"progress": 69,
"isAlreadyDeployed": true,
"industry": "general",
"filter": "user_id=1,level=1",
"fields": [{
"name": "item_title",
"appFieldType": "title"
},
{
"name": "item_content"
},
{
"name": "item_title_keep",
"processType": "reserve"
}
],
"extend": {
"useHotQuery": true,
"useHistoryQuery": true
}
}
结构
字段 | 类型 | 描述 |
---|---|---|
id | Integer | 模型ID |
groupId | String | 应用ID |
groupName | String | 应用名称 |
type | String | 算法类型 - pop 人气模型 - cp 类目预测 - hot 热词 - hint 底纹 - suggest 下拉提示 |
name | String | 模型名称 命名规则:/^(?!ops_)[a-zA-Z]\w{0,29}$/ |
industry | String | 行业 - general 通用 - ecommerce 电商 - content 内容 |
trainTarget | String | 模型的训练目标 - click 点击 - buy 购买 - cart 加入购物车 - collect 收藏 - like 点赞 - comment 评论 - share 分享 - subscribe 关注 - gift 礼物 - download 下载 - read 阅读 - tip 打赏 |
behaviorEnabled | Boolean | 是否使用行为数据 默认 true,部分模型支持不使用行为数据 |
behaviorFromGroupName | String | 使用另一个应用的行为数据源 默认使用当前应用的行为数据 |
cron | String | 定时训练的cron表达式 参考:Linux crontab定时规则 |
cronEnabled | Boolean | 是否启用定时训练 默认 true |
availableThreshold | Float | 模型是否可用的阈值 取值范围:[0-1] |
filter | String | 导数据的过滤条件 目前支持的条件有<, >, =, !=, >=, <=,多个条件用’,’分隔 |
fields[] | Object | 字段列表 |
fields[].name | String | 字段名 |
fields[].appFieldType | String | 该字段在app中的角色 - pk 主键 - cate_id 类目id - title 标题 - cate_name 类目名称 - normal 普通字段 |
fields[].processType | String | 对字段的处理类型 - reserve 原值保留 - normal 普通 |
lastTrainingTime | Integer | 上次任务完成时间 |
lastModifyTime | Integer | 上次修改配置时间 |
auc | Float | 模型的auc值 |
status | String | 任务的执行状态 - train_init 待训练 - train_pending 训练中 - validate_failed 数据异常 - train_failed 训练失败 - train_bad_model 已训练未通过 - train_success 训练成功 |
progress | Integer | 任务执行过程中的百分比进度 |
isAlreadyDeployed | Boolean | 是否曾部署成功过,相同配置已有可用模型 |
extend | Object | 模型的扩展配置 |
extend.useHotQuery | Boolean | 是否使用热搜词 支持的模型类型:suggest |
extend.useHistoryQuery | Boolean | 是否使用搜索历史 支持的模型类型:suggest |