Skip to content

Minor logic error in recommendation_system_tutorial/recommendation_system_tutorial_netflix.py  #5

Description

@oyzh888

This line :
top_similar_user_ratings.extend([global_avg_rating[movie]] * (5 - len(ratings)))
should be
top_similar_user_ratings.extend([global_avg_rating[movie]] * (5 - len(top_similar_user_ratings)))

Because len(ratings) is a const large value here which is not right.

https://github.com/towardsai/tutorials/blob/master/recommendation_system_tutorial/recommendation_system_tutorial_netflix.py#L174

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions