You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I copied the content of example file "movielens.py" into my program file "datatrain.py" , trained the ml-20m dataset with model(als).
some unexist movieIds were trained out. how is that happened??
movieId| name | similar_movieId | score
26462 | Bad Boys (1983)| 113812 | 0.926960830278
Traceback (most recent call last):
File "datatrain.py", line 108, in
min_rating=args.min_rating)
File "datatrain.py", line 86, in calculate_similar_movies
o.write("%s\t%s\t%s\n" % (movie, movie_lookup[other], score))
KeyError: 113812
The text was updated successfully, but these errors were encountered:
There used to be problems with the movielens example, where
occasionally items with no users would be returned. Since these
items sometimes had no matching label, this would trip up the
code looking up the string to show (#59)
Fix this by detecting this case, and setting the factors to 0.
When returning similar items also make sure that we don't introduce
NaN values here.
Thanks for pointing this out! There were some bugs related to handling of movies with no users (which the movie lens set has after filtering down to only positive reviews). I've fixed in that last PR, should work well now.
I copied the content of example file "movielens.py" into my program file "datatrain.py" , trained the ml-20m dataset with model(als).
some unexist movieIds were trained out. how is that happened??
movieId| name | similar_movieId | score
26462 | Bad Boys (1983)| 113812 | 0.926960830278
Traceback (most recent call last):
File "datatrain.py", line 108, in
min_rating=args.min_rating)
File "datatrain.py", line 86, in calculate_similar_movies
o.write("%s\t%s\t%s\n" % (movie, movie_lookup[other], score))
KeyError: 113812
The text was updated successfully, but these errors were encountered: