【问题标题】:How I can filter items in UR template by custom params?如何通过自定义参数过滤您的模板中的项目?
【发布时间】:2015-12-03 20:57:30
【问题描述】:

问题是UR template

当我有这样存储的项目时:

{
    "event" : "$set",
    "entityType" : "item",
    "entityId" : "ipad",
    "properties" : {
        "category": ["123", "1145"]
        "expireDate": "2016-10-05T21:02:49.228Z",
        "type" : "article",
        "group" : "sport",
    },
    "eventTime" : "2015-10-05T21:02:49.228Z" 
}

如何仅过滤具有type="article"group="sport" 的预测?

此查询不起作用:

{
  “user”: “xyz”,
  “fields”: [
    {
      “name”: “type”
      “values”: [“article”],
      “bias”: -1 // filter out all except ‘article’
    },{
      “name”: “group”,
      “values”: [“sport”]
      “bias”: -1 // filter out all except ‘sport’
    }
  ]
}

【问题讨论】:

  • 您是否将数据导入到端口7070(例如)> pio build > pio train > pio deploy?你遇到了什么错误? engine.json 怎么样?
  • 您找到解决方案了吗?我也遇到了同样的问题。

标签: predictionio


【解决方案1】:

将 pio 更新到 0.9.5 并将 UR 更新到 0.2.2 为我解决了这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-05-01
    • 2018-04-22
    • 2010-09-30
    • 2017-10-03
    • 1970-01-01
    • 2014-02-01
    • 1970-01-01
    • 2023-03-25
    相关资源
    最近更新 更多