gpt4 book ai didi

predictionio - Universal Recommender 中的数据收集

转载 作者:行者123 更新时间:2023-12-02 04:44:58 26 4
gpt4 key购买 nike

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

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

{
"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 - Universal Recommender 中的数据收集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33877542/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com