需要设计艺术家推荐的建议 [英] Need suggestions on designing artist recommendation

查看:129
本文介绍了需要设计艺术家推荐的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下情况。我需要向用户推荐艺术家。应该如何建模?我正在寻找有关这方面的建议。



我在想。基于以下标准:


  1. 当用户收听歌曲时,歌曲流派将被记录在+1
  2. $ b的某处$ b
  3. 当用户喜欢一首歌曲时,歌曲流派将被记录在+2

的某个地方我可以列出所有艺术家基于具有最高分数的类型。



甚至还有,我应该有一个名为推荐的新模型,并将其嵌入到用户? p>

我可以接受各种建议。

解决方案

有很多投票。投票可以是投票或投票(使用单表继承)。然后,您可以有一个推荐模型,根据上下投票决定用户可能喜欢什么(从相关投票中找到相关艺术家,并减去与投票相关的艺术家)。然后,用户可以有很多建议。


I have the following scenario.I need to recommend artists to users. How should this be modeled? I am looking for suggestions on this.

I was thinking. Based on following criterias:

  1. When a user listens to a song, the songs genre gets recorded somewhere with +1
  2. When a user "likes" a song, the songs genre gets recorded somewhere with +2

This way I could list all artists based on the genre that has the highest points.

Even still, should I have a new model called "Recommendation" and have it embedded into user?

I am open to all kinds of suggestions.

解决方案

A User could have many Votes. A Vote could be an up-vote or down-vote (using single table inheritance). You could then have a Recommendation model that determines what a user might like depending on up and down-votes (find related artists from up-votes and subtract artists related to down-votes.) A User then could have many Recommendations.

这篇关于需要设计艺术家推荐的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆