文档首页> 推荐系统 RES> API参考> API> 训练作业> 查询训练作业候选集
更新时间:2022-05-13 GMT+08:00
分享

查询训练作业候选集

功能介绍

查询给定workspaces_id和指定resource_id下的候选集。

调试

您可以在API Explorer中调试该接口。

URI

GET /v2.0/{project_id}/workspaces/{workspace_id}/resources/{resource_id}/result-set

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

项目id,获取方式请参见获取项目ID

resource_id

String

资源id

workspace_id

String

工作空间id

表2 Query参数

参数

是否必选

参数类型

描述

use_type

String

使用类型:

  • UI,基于用户推荐物品

  • UU,基于用户推荐用户

  • II,基于物品推荐物品

  • IU,基于物品推荐用户

请求参数

表3 请求Header参数

参数

是否必选

参数类型

描述

Content-Type

String

内容类型,取值为application/json

X-Auth-Token

String

用户token,获取方式请参见获取用户Token

响应参数

状态码: 200

表4 响应Body参数

参数

参数类型

描述

result_set

Array of result_set objects

候选集列表

is_success

Boolean

是否成功

message

String

返回消息(请求成功时,不返回此字段)

error_code

String

错误码(请求成功时,不返回此字段)

表5 result_set

参数

参数类型

描述

availability

Integer

可用性

category

String

类别

job_id

String

作业编号

job_type

String

作业类型

rec_id

String

rec编号

rec_type

String

rec类型

scene_id

String

场景编号

table_name

String

表名

workspace_id

String

工作空间编号

请求示例

查询指定workspace_id 和resource_id下,UIREC 类型的候选集。

/v2.0/testuuidxxxxxxxxxxxxxxxxxxxxxxxx/workspaces/testuuidxxxxxxxxxxxxxxxxxxxxxxxx/resources/testuuidxxxxxxxxxxxxxxxxxxxxxxxx/result-set?use_type=UI

-

响应示例

状态码: 200

OK

{
  "result_set" : [ {
    "rec_id" : "22ab62118c404a668232ba43fb8b762c",
    "workspace_id" : "a79b01afa69d4ddc943aa3423fc43531",
    "scene_id" : "c27aea2b50004187a36fdbd136368895",
    "job_id" : "929d25d76a6f45b3a06490074949484b",
    "table_name" : "r4-UIREC",
    "rec_type" : "UIREC",
    "availability" : 1,
    "category" : "RECALL",
    "job_type" : "ItemCf"
  }, {
    "rec_id" : "382af563b5bf454c9242b9989f95d120",
    "workspace_id" : "a79b01afa69d4ddc943aa3423fc43531",
    "scene_id" : "c27aea2b50004187a36fdbd136368895",
    "job_id" : "2bb9cce018364e9992537d0776009222",
    "table_name" : "r2-UIREC",
    "rec_type" : "UIREC",
    "availability" : 1,
    "category" : "RECALL",
    "job_type" : "AttributeMatch"
  }, {
    "rec_id" : "d01e9e29aa64473da12a04f6b4e3a3f1",
    "workspace_id" : "a79b01afa69d4ddc943aa3423fc43531",
    "scene_id" : "c27aea2b50004187a36fdbd136368895",
    "job_id" : "0516d537a82c460caf2b78ebd638eb3b",
    "table_name" : "ab-UIREC",
    "rec_type" : "UIREC",
    "availability" : 1,
    "category" : "RECALL",
    "job_type" : "ItemCf"
  }, {
    "rec_id" : "d05955af59bf4b09b2539308434ebd97",
    "workspace_id" : "a79b01afa69d4ddc943aa3423fc43531",
    "scene_id" : "c27aea2b50004187a36fdbd136368895",
    "job_id" : "f79e55ca4e314d4188fab3045554efa8",
    "table_name" : "r3-UIREC",
    "rec_type" : "UIREC",
    "availability" : 1,
    "category" : "RECALL",
    "job_type" : "BhvHistory"
  }, {
    "rec_id" : "d9a317a2f1bb46fc8a25096a310108d6",
    "workspace_id" : "a79b01afa69d4ddc943aa3423fc43531",
    "scene_id" : "c27aea2b50004187a36fdbd136368895",
    "job_id" : "ca3fa69dbbaa4dcea3a0f5d466af0742",
    "table_name" : "a-UIREC",
    "rec_type" : "UIREC",
    "availability" : 1,
    "category" : "RECALL",
    "job_type" : "ItemCf"
  } ],
  "is_success" : true
}

状态码

状态码

描述

200

OK

错误码

请参见错误码

分享:

    相关文档

    相关产品