The Model object represents an OpenSearch application model, including its type, training configuration, behavioral data settings, and current training status.
Example
{
"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
}
}Structure
| Field | Type | Description |
|---|---|---|
| id | Integer | The ID of the model. |
| groupId | String | The ID of the application. |
| groupName | String | The name of the application. |
| type | String | The type of the model. Valid values: pop (popularity model), cp (category prediction model), hot (top search model), hint (hint model), suggest (drop-down suggestions model). |
| name | String | The name of the model. The name must match the regular expression /^(?!ops_)[a-zA-Z]\w{0,29}$/. |
| industry | String | The industry the model applies to. Valid values: general, ecommerce, content. |
| trainTarget | String | The training goal of the model. Valid values: click, buy, cart, collect, like, comment, share, subscribe, gift, download, read, tip. |
| behaviorEnabled | Boolean | Specifies whether to use behavioral data. Default value: true. Not all model types support behavioral data. |
| behaviorFromGroupName | String | The name of the application whose behavioral data is used. Defaults to the behavioral data of the current application. |
| cron | String | The CRON expression for scheduled training. For more information about CRON syntax, see the Linux Crontab documentation. |
| cronEnabled | Boolean | Specifies whether scheduled training is enabled. Default value: true. |
| availableThreshold | Float | The threshold when the model is considered qualified. Valid values: 0 to 1. |
| filter | String | The filter conditions for data import. Supported operators: <, >, =, !=, >=, <=. Separate multiple conditions with commas (,). |
| fields[] | Object | The fields used by the model. |
| fields[].name | String | The name of the field. |
| fields[].appFieldType | String | The role of the field in the application. Valid values: pk (primary key), cate_id (category ID), title (title), cate_name (category name), normal (regular field). |
| fields[].processType | String | The processing type for the field. Valid values: reserve, normal. |
| lastTrainingTime | Integer | The timestamp of the most recent completed training. |
| lastModifyTime | Integer | The timestamp of the most recent modification to the model. |
| auc | Float | The area under curve (AUC) value of the model. |
| status | String | The training status of the model. Valid values: train_init (waiting to be trained), train_pending (training in progress), validate_failed (a data exception occurred), train_failed (training failed), train_bad_model (training completed but the model failed), train_success (training completed and the model passed). |
| progress | Integer | The training progress, as a percentage. |
| isAlreadyDeployed | Boolean | Indicates whether the model has been deployed or whether one or more models with the same configuration are available. |
| extend | Object | Extended configurations for the model. |
| extend.useHotQuery | Boolean | Specifies whether hot query–based models are enabled. We recommend that you use these models. |
| extend.useHistoryQuery | Boolean | Specifies whether history query–based models are enabled. We recommend that you use these models. |
该文章对您有帮助吗?