文档

CreateFilteringAlgorithm - 创建召回表

创建召回表,目前召回表由PAI训练完成导出到odps中,在AIRec中指定ODPS表信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求语法

POST /v2/openapi/instances/{instanceId}/filtering-algorithms

请求参数

名称类型必填描述示例值
instanceIdstring

实例 ID。

airec-cn-****
dryRunstring

是否预检参数。

取值:

  • true:不会真实执行。

  • false:会直接执行。

true

返回参数

名称类型描述示例值
object

返回参数。

resultobject

召回表信息。

gmtModifiedstring

最后更新时间,单位为 UTC 时间。

2018-12-07T02:24:26.000Z
statusstring

表示单签召回表的状态。

取值:

  • Draft:草稿。

  • Running:运行中。

  • Offline:已下线。

  • Deleted:已删除。

Running
gmtCreatestring

创建时间的 UTC 时间。

2018-12-07T02:24:26.000Z
algorithmIdstring

召回表 ID。

abc
metaobject

Meta 源数据。

typestring

数据源类型,当前只支持 ODPS。

ODPS
extInfoobject

召回表类型包含内容。

{}
categorystring

数据源召回类目。

1_2
thresholdobject

Table 的阈值信息。

sourceDataSizeThresholdinteger

源数据大小波动阈值(0-100)。

1
sourceDataRecordThresholdinteger

源数据条目数波动阈值(0-100)。

1
indexSizeThresholdinteger

索引大小波动阈值(0-100)。

1
indexLossThresholdinteger

索引丢失阈值(0-100)。

1
statusstring

表示单签召回表的状态。

取值:

  • Draft:草稿。

  • Running:运行中。

  • Offline:已下线。

  • Deleted:已删除。

Running
gmtCreatestring

创建时间的 UTC 时间。

2018-12-07T02:24:26.000Z
tableNamestring

ODPS 召回表名称。

table_test
cronstring

定时调度任务 Cron。

0 0/12 0 * *
descriptionstring

描述。

xx
gmtModifiedstring

最后修改时间的 UTC 时间。

2018-12-07T02:24:26.000Z
projectNamestring

ODPS 中的 ProjectName。

testname
algorithmNamestring

召回名称。

algorithmTest
cronEnabledboolean

是否开启定时任务。

true
requestIdstring

请求的 ID。

829F38F6-E2D6-4109-90A6-888160BD16C2

示例

正常返回示例

JSON格式

{
  "result": {
    "gmtModified": "2018-12-07T02:24:26.000Z",
    "status": "Running",
    "gmtCreate": "2018-12-07T02:24:26.000Z",
    "algorithmId": "abc",
    "meta": {
      "type": "ODPS",
      "extInfo": {},
      "category": "1_2",
      "threshold": {
        "sourceDataSizeThreshold": 1,
        "sourceDataRecordThreshold": 1,
        "indexSizeThreshold": 1,
        "indexLossThreshold": 1
      },
      "status": "Running",
      "gmtCreate": "2018-12-07T02:24:26.000Z",
      "tableName": "table_test",
      "cron": "0 0/12 0 * *",
      "description": "xx",
      "gmtModified": "2018-12-07T02:24:26.000Z",
      "projectName": "testname",
      "algorithmName": "algorithmTest",
      "cronEnabled": true
    }
  },
  "requestId": "829F38F6-E2D6-4109-90A6-888160BD16C2"
}

错误码

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (0)
文档反馈