Skip to content

Minor logic error in recommendation_system_tutorial/recommendation_system_tutorial_netflix.py  #5

Open
@oyzh888

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

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