【问题标题】:Best way to indicate no rating in a rating matrix?在评级矩阵中表示没有评级的最佳方法?
【发布时间】:2020-11-29 12:07:11
【问题描述】:

我正在使用 USER-ITEM 评分矩阵构建推荐系统。用户对项目 1-5 进行评分。但是,我使用 0 来表示用户是否没有对该项目进行评分,并认为这可能会影响推荐器输出的预测评分。

表明用户没有对评分矩阵中的特定项目进行评分的最佳方式是什么?

【问题讨论】:

    标签: python rating-system recommender-systems


    【解决方案1】:

    只是一个想法

    class matrix():
        def __init__(self):
            self.rated = False
            self.rating = 0
    
        def rate(self):
            if not self.rated:
                rating logic goes here
                self.rated = True
            else:
                print("already rated")
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多