Skip to content

item_based.py

git-ankit edited this page Oct 26, 2020 · 3 revisions

Over here we are talking about item_based.py code. There is only one function over here:

recommendForNewUser(user_rating)

input:

user_rating: a string in a form of "{X*}" where X is title':'%s', 'rating':%f where %s is a string, which is a movie name and %f is a float for the rating from 1.0 to 5.0.

output:

A list of strings. The strings are recommended movies. The length of the string is 201.

Clone this wiki locally