【问题标题】:Data collection in Universal RecommenderUniversal Recommender 中的数据收集
【发布时间】:2015-11-23 18:01:53
【问题描述】:

我想使用 prediction.io 构建推荐服务。我认为对于我的需要 Universal Recommender (http://templates.prediction.io/PredictionIO/template-scala-parallel-universal-recommendation) 是一个很好的模板。我的网站显示 EPG,我想根据用户页面视图为简单的 PoC 进行推荐。页面浏览量是具有某些属性的广播,包括性别、演员、标签、频道、花束......

一开始我只发送一个主要事件,用户看到广播:

{
  "event" : "view",
  "entityType" : "user",
  "entityId" : "userId",
  "targetEntityType" : "item",
  "targetEntityId" : "broadcastId",
  "properties" : {},
  "eventTime" : "2015-10-05T21:02:49.228Z"
}

如果我理解文档,我将不得不使用 crontask 每天发送新广播以添加属性,并学习 pio 新项目:

{
  "event" : "$set",
  "entityType" : "item",
  "entityId" : "broadcastId",
  "properties" : {
      "bouquet" :       ["B1", "B2"],
      "people": ["P1", "P2"],
      "channel": ["C1"],
      "availableDate" :     "2015-11-23T21:02:49.228Z",
      "expireDate":         "2016-10-05T21:02:49.228Z"
  },
  "eventTime" : "2015-11-23T21:02:49.228Z"
}

现在,我不知道在广播实体中使用属性更好还是发送辅助事件更好?例如:

{
  "event" : "view-bouquet",
  "entityType" : "user",
  "entityId" : "userId",
  "targetEntityType" : "item",
  "targetEntityId" : "bouquetId",
  "properties" : {},
  "eventTime" : "2015-10-05T21:02:49.228Z"
}

{
  "event" : "view-people",
  "entityType" : "user",
  "entityId" : "userId",
  "targetEntityType" : "item",
  "targetEntityId" : "peopleId",
  "properties" : {},
  "eventTime" : "2015-10-05T21:02:49.228Z"
}

...

{
  "event" : "view-channel",
  "entityType" : "user",
  "entityId" : "userId",
  "targetEntityType" : "item",
  "targetEntityId" : "channelId",
  "properties" : {},
  "eventTime" : "2015-10-05T21:02:49.228Z"
}

【问题讨论】:

    标签: predictionio


    【解决方案1】:

    这取决于你想做什么。如果您希望能够过滤和/或增强这些,请将它们添加为项目的属性;如果您希望他们通过交叉共现计算影响/改进模型,请将它们作为次要事件发送。 [或者如果/当它对你有意义时两者都做]

    【讨论】:

    • 在我的情况下,我不需要提升和/或过滤,因为 UR 只允许提升属性的值,我想提升一个属性,以赋予属性权重。例如,“花束”可以设置为比“频道”更重要
    猜你喜欢
    • 2017-10-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-21
    • 1970-01-01
    • 2012-05-18
    • 1970-01-01
    • 2018-04-27
    相关资源
    最近更新 更多