from collections import defaultdict
import json
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import random
import surprise as sp
ratings_set = pd.read_csv('ratings.csv')
display(ratings_set)
userIdint64
movieIdint64
0
1
1
1
1
3
2
1
6
3
1
47
4
1
50
5
1
70
6
1
101
7
1
110
8
1
151
9
1
157
movies_set = pd.read_csv('movies.csv')
display(movies_set)
movieIdint64
1 - 193609
titleobject
Emma (1996)0%
Saturn 3 (1980)0%
9735 others100%
0
1
Toy Story (1995)
1
2
Jumanji (1995)
2
3
Grumpier Old Men (1995)
3
4
Waiting to Exhale (1995)
4
5
Father of the Bride Part II (1995)
5
6
Heat (1995)
6
7
Sabrina (1995)
7
8
Tom and Huck (1995)
8
9
Sudden Death (1995)
9
10
GoldenEye (1995)
ratings_movies_set = ratings_set.merge(movies_set, how='inner', on='movieId')
display(ratings_movies_set)
userIdint64
movieIdint64
0
1
1
1
5
1
2
7
1
3
15
1
4
17
1
5
18
1
6
19
1
7
21
1
8
27
1
9
31
1
reader = sp.Reader(rating_scale=(0, 5))
dataset = sp.Dataset.load_from_df(ratings_set[['userId', 'movieId', 'rating']], reader)
# First we try to load best config from json file
# If the file doesn't exists, we use GridSearchCV to tune algorithm
best_params = {}
with open('knn_params_best.json', 'r') as f:
best_params = json.load(f)
if not best_params:
knn_params_grid = {
'min_k': [2],
'k': [10,30,40,50],
'verbose': [False],
'sim_options': {
'name': ['pearson', 'cosine'],
'min_support': [10,15,20],
'user_based': [True]
}
}
gs = sp.model_selection.GridSearchCV(
algo_class=sp.KNNBasic,
param_grid=knn_params_grid,
measures=['rmse'],
cv=5, # using 5-fold cross-validation
n_jobs=-1
)
gs.fit(dataset)
print("best rmse score:", gs.best_score['rmse'])
print("Best params: ", gs.best_params['rmse'])
# Asign knn algorithm with the best accuracy
knn = gs.best_estimator['rmse']
# writes best param to json file for later use
with open('knn_params_best.json', 'w') as f:
json.dump(gs.best_params['rmse'], f)
else:
print("Best params: ", best_params)
knn = sp.KNNBasic(k=best_params['k'], min_k=best_params['min_k'],
sim_options=best_params['sim_options'], verbose=False)
sp.model_selection.cross_validate(knn, dataset, measures=['rmse'], cv=5, verbose=Fals, n_jobs=-1)
knn.verbose = True
best rmse score: 0.9673666442092548
Best params: {'min_k': 2, 'k': 30, 'verbose': False, 'sim_options': {'name': 'pearson', 'min_support': 10, 'user_based': True}}
def predict_ratings(algo, user_id, movie_id):
check = ratings_movies_set.query(f"userId == {user_id} and movieId == {movie_id}")
if not check.empty:
print(f"User {user_id} has already rate movie {movie_id}")
display(check)
else:
display(f"User {user_id} ratings:", ratings_movies_set[ratings_movies_set['userId'] == user_id])
display(f"Movie {movie_id} ratings:", ratings_movies_set[ratings_movies_set['movieId'] == movie_id])
predict = algo.predict(uid=user_id, iid=movie_id)
print(f"The estimation for user {user_id} and {movie_id} is: ", predict.est)
print("More details:",predict)
knn.fit(dataset.build_full_trainset())
Computing the pearson similarity matrix...
Done computing similarity matrix.
predict_ratings(knn, 11, 293)
The estimation for user 11 and 293 is: 3.894931122551764
More details: user: 11 item: 293 r_ui = None est = 3.89 {'actual_k': 30, 'was_impossible': False}
predict_ratings(knn, 100, 72998)
The estimation for user 100 and 72998 is: 3.8525054630317594
More details: user: 100 item: 72998 r_ui = None est = 3.85 {'actual_k': 30, 'was_impossible': False}
def get_top_n(predictions, n=10):
# First map the predictions to each user.
top_n = defaultdict(list)
for uid, iid, true_r, est, _ in predictions:
top_n[uid].append((iid, est))
# Then sort the predictions for each user and retrieve the n highest ones.
for uid, user_ratings in top_n.items():
user_ratings.sort(key=lambda x: x[1], reverse=True)
top_n[uid] = user_ratings[:n]
return top_n
train_set = dataset.build_full_trainset()
# build test set for all pairs that are not in the training set
test_set = train_set.build_anti_testset()
knn.fit(train_set)
predictions = knn.test(test_set)
top_10 = get_top_n(predictions, n=10)
Computing the pearson similarity matrix...
Done computing similarity matrix.
sample_top_10 = random.sample(top_10.items(), 50)
counter = 0
for uid, user_ratings in sample_top_10:
counter += 1
print(f"{counter}. User {uid} top 10 recommendations are:")
for (iid, rating) in user_ratings:
movie_title = movies_set[movies_set['movieId'] == iid].title.item()
print(f"{movie_title} (id:{iid}), rating: {rating}")
print("\n")
1. User 432 top 10 recommendations are:
FLCL (2000) (id:62336), rating: 5
Lesson Faust (1994) (id:1151), rating: 5
Angels and Insects (1995) (id:85), rating: 5
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 5
Titanic (1953) (id:3404), rating: 5
Stranger Than Paradise (1984) (id:3925), rating: 5
Enter the Void (2009) (id:78836), rating: 5
Memories of Murder (Salinui chueok) (2003) (id:31364), rating: 4.90981390915192
I Am Trying to Break Your Heart (2002) (id:6306), rating: 4.8730245485714905
Trust (1990) (id:1236), rating: 4.8648238114869615
2. User 246 top 10 recommendations are:
Vanya on 42nd Street (1994) (id:334), rating: 5
Come and See (Idi i smotri) (1985) (id:6818), rating: 5
Belle époque (1992) (id:6442), rating: 5
Enter the Void (2009) (id:78836), rating: 4.999999999999999
Best of Youth, The (La meglio gioventù) (2003) (id:7767), rating: 4.963724908311652
Wings of the Dove, The (1997) (id:1683), rating: 4.960317091485971
Encounters at the End of the World (2008) (id:60333), rating: 4.946876660403271
Mutant Aliens (2001) (id:33090), rating: 4.946732383731991
Firewalker (1986) (id:2477), rating: 4.945377491753062
Cove, The (2009) (id:71462), rating: 4.939672294191769
3. User 351 top 10 recommendations are:
Angels and Insects (1995) (id:85), rating: 5
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 5
Come and See (Idi i smotri) (1985) (id:6818), rating: 5
Enter the Void (2009) (id:78836), rating: 5
Belle époque (1992) (id:6442), rating: 5
Mind Game (2004) (id:47404), rating: 4.984135963737651
Best of Youth, The (La meglio gioventù) (2003) (id:7767), rating: 4.975591824895399
Trial, The (Procès, Le) (1962) (id:6460), rating: 4.9263449481920105
Encounters at the End of the World (2008) (id:60333), rating: 4.925245643241641
Stranger Than Paradise (1984) (id:3925), rating: 4.884366712011432
4. User 296 top 10 recommendations are:
Come and See (Idi i smotri) (1985) (id:6818), rating: 5
Enter the Void (2009) (id:78836), rating: 5
Belle époque (1992) (id:6442), rating: 4.999999999999999
Wild Parrots of Telegraph Hill, The (2003) (id:32582), rating: 4.994793400020372
General, The (1926) (id:3022), rating: 4.994290800918707
Sullivan's Travels (1941) (id:2936), rating: 4.992544765829283
Kind Hearts and Coronets (1949) (id:6650), rating: 4.987788898187274
Born Yesterday (1950) (id:3341), rating: 4.9863448009324
Place in the Sun, A (1951) (id:3475), rating: 4.9863448009324
Gods and Monsters (1998) (id:2333), rating: 4.985322183997425
5. User 337 top 10 recommendations are:
Raise the Red Lantern (Da hong deng long gao gao gua) (1991) (id:1280), rating: 5
Anna and the King (1999) (id:3155), rating: 5
Adam's Rib (1949) (id:7121), rating: 4.999999999999999
Rare Exports: A Christmas Tale (Rare Exports) (2010) (id:82242), rating: 4.9759268824422245
Central Station (Central do Brasil) (1998) (id:2357), rating: 4.966027935964686
Afterglow (1997) (id:1733), rating: 4.937309658222416
Ponette (1996) (id:1545), rating: 4.9320558719293714
Party Girl (1995) (id:187), rating: 4.91122435391539
Oklahoma! (1955) (id:7614), rating: 4.91082980590653
7th Voyage of Sinbad, The (1958) (id:3153), rating: 4.904902675636716
6. User 529 top 10 recommendations are:
Once Were Warriors (1994) (id:290), rating: 5
Dallas Buyers Club (2013) (id:106100), rating: 5
Unbearable Lightness of Being, The (1988) (id:1295), rating: 5
Adam's Rib (1949) (id:7121), rating: 5
Belle époque (1992) (id:6442), rating: 5
Ponyo (Gake no ue no Ponyo) (2008) (id:65261), rating: 4.751200624949465
You Can Count on Me (2000) (id:3983), rating: 4.740611092397547
Inception (2010) (id:79132), rating: 4.719756122308854
Impostors, The (1998) (id:2295), rating: 4.705927892268396
This Is the End (2013) (id:102123), rating: 4.702047847612224
7. User 167 top 10 recommendations are:
Come and See (Idi i smotri) (1985) (id:6818), rating: 5
Enter the Void (2009) (id:78836), rating: 5
Belle époque (1992) (id:6442), rating: 5
Benji the Hunted (1987) (id:3673), rating: 4.993783293842301
What We Do in the Shadows (2014) (id:115122), rating: 4.970232859989913
Cottage, The (2008) (id:66943), rating: 4.948893963993051
Afterglow (1997) (id:1733), rating: 4.908276551321989
Brothers Bloom, The (2008) (id:68848), rating: 4.900645172989989
Victory (a.k.a. Escape to Victory) (1981) (id:5915), rating: 4.848931176937162
Paris Is Burning (1990) (id:1192), rating: 4.824637381473847
8. User 247 top 10 recommendations are:
Lesson Faust (1994) (id:1151), rating: 5
Trial, The (Procès, Le) (1962) (id:6460), rating: 5
Heidi Fleiss: Hollywood Madam (1995) (id:99), rating: 5
Come and See (Idi i smotri) (1985) (id:6818), rating: 5
Enter the Void (2009) (id:78836), rating: 5
Belle époque (1992) (id:6442), rating: 5
American Flyers (1985) (id:3214), rating: 4.991181825065749
Cosmos (id:171495), rating: 4.936155864157655
What We Do in the Shadows (2014) (id:115122), rating: 4.915336445234053
Guess Who's Coming to Dinner (1967) (id:3451), rating: 4.911211724184435
9. User 2 top 10 recommendations are:
King Kong (1933) (id:2366), rating: 5
Bridge on the River Kwai, The (1957) (id:1250), rating: 5
Outlaw Josey Wales, The (1976) (id:3508), rating: 5
The Raid: Redemption (2011) (id:93838), rating: 5
It Follows (2014) (id:121231), rating: 5
Gozu (Gokudô kyôfu dai-gekijô: Gozu) (2003) (id:30745), rating: 4.966513943209054
Dog Soldiers (2002) (id:5833), rating: 4.953995148590574
Killer, The (Die xue shuang xiong) (1989) (id:1218), rating: 4.933027886418108
Thor: Ragnarok (2017) (id:122916), rating: 4.922727649690746
Do the Right Thing (1989) (id:3424), rating: 4.899541829627162
10. User 84 top 10 recommendations are:
What We Do in the Shadows (2014) (id:115122), rating: 5
Heidi Fleiss: Hollywood Madam (1995) (id:99), rating: 5
Come and See (Idi i smotri) (1985) (id:6818), rating: 5
Belle époque (1992) (id:6442), rating: 5
Lesson Faust (1994) (id:1151), rating: 4.999999999999999
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 4.999999999999999
Gentlemen of Fortune (Dzhentlmeny udachi) (1972) (id:74727), rating: 4.994213587586391
Asterix and Cleopatra (Astérix et Cléopâtre) (1968) (id:26183), rating: 4.9662202231947745
Class, The (Klass) (2007) (id:58554), rating: 4.962104878935912
Trial, The (Procès, Le) (1962) (id:6460), rating: 4.878787963030029
11. User 489 top 10 recommendations are:
Lesson Faust (1994) (id:1151), rating: 5
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 5
Heidi Fleiss: Hollywood Madam (1995) (id:99), rating: 5
Come and See (Idi i smotri) (1985) (id:6818), rating: 5
Enter the Void (2009) (id:78836), rating: 5
Belle époque (1992) (id:6442), rating: 5
The Pacific (2010) (id:126430), rating: 4.956424997601198
Doctor Who: A Christmas Carol (2010) (id:147376), rating: 4.936028906106406
Black Mirror: White Christmas (2014) (id:174053), rating: 4.917621544571838
Under the Sand (2000) (id:4273), rating: 4.912275200341579
12. User 180 top 10 recommendations are:
Before Night Falls (2000) (id:4021), rating: 5
Angels and Insects (1995) (id:85), rating: 5
The Lego Batman Movie (2017) (id:167746), rating: 5
Gozu (Gokudô kyôfu dai-gekijô: Gozu) (2003) (id:30745), rating: 4.9050082110149
Wild Parrots of Telegraph Hill, The (2003) (id:32582), rating: 4.878952909960738
Dog Soldiers (2002) (id:5833), rating: 4.839383413543367
Sophie Scholl: The Final Days (Sophie Scholl - Die letzten Tage) (2005) (id:43376), rating: 4.83445934315313
My Dinner with André (1981) (id:5772), rating: 4.833986186766747
Trial, The (Procès, Le) (1962) (id:6460), rating: 4.8198390601541785
Battle of Algiers, The (La battaglia di Algeri) (1966) (id:26131), rating: 4.81797124784807
13. User 319 top 10 recommendations are:
Come and See (Idi i smotri) (1985) (id:6818), rating: 5
Enter the Void (2009) (id:78836), rating: 5
Belle époque (1992) (id:6442), rating: 5
Dog Soldiers (2002) (id:5833), rating: 4.999999999999999
Baraka (1992) (id:3677), rating: 4.830096536829355
The Godfather Trilogy: 1972-1990 (1992) (id:172591), rating: 4.829697046959642
Cosmos (id:171495), rating: 4.822126482171624
Guys and Dolls (1955) (id:3549), rating: 4.8199848895440764
Rififi (Du rififi chez les hommes) (1955) (id:4298), rating: 4.802097071144614
Sherlock - A Study in Pink (2010) (id:185135), rating: 4.794565993387264
14. User 330 top 10 recommendations are:
Black Mirror: White Christmas (2014) (id:174053), rating: 5
Come and See (Idi i smotri) (1985) (id:6818), rating: 5
Enter the Void (2009) (id:78836), rating: 5
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 4.999999999999999
Heidi Fleiss: Hollywood Madam (1995) (id:99), rating: 4.999999999999999
Belle époque (1992) (id:6442), rating: 4.999999999999999
Anne of Green Gables: The Sequel (a.k.a. Anne of Avonlea) (1987) (id:74282), rating: 4.972826531697428
Best of Youth, The (La meglio gioventù) (2003) (id:7767), rating: 4.9003171766625435
Beloved (1998) (id:2314), rating: 4.886396959047895
What We Do in the Shadows (2014) (id:115122), rating: 4.87750965385821
15. User 55 top 10 recommendations are:
Adam's Rib (1949) (id:7121), rating: 5
Belle époque (1992) (id:6442), rating: 5
Towering Inferno, The (1974) (id:2524), rating: 4.907248946739749
You Can Count on Me (2000) (id:3983), rating: 4.871415776883341
True Grit (1969) (id:3494), rating: 4.814497893479498
Ran (1985) (id:1217), rating: 4.7752046387616485
Dunkirk (2017) (id:174055), rating: 4.762727738010967
Guess Who's Coming to Dinner (1967) (id:3451), rating: 4.724883478505391
Gigantic (A Tale of Two Johns) (2002) (id:6375), rating: 4.722986984485697
Chorus, The (Choristes, Les) (2004) (id:27815), rating: 4.710856788542758
16. User 95 top 10 recommendations are:
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 5
Come and See (Idi i smotri) (1985) (id:6818), rating: 5
Belle époque (1992) (id:6442), rating: 5
Enter the Void (2009) (id:78836), rating: 4.999999999999999
Trial, The (Procès, Le) (1962) (id:6460), rating: 4.988398423115324
Deathtrap (1982) (id:5938), rating: 4.901629883162993
Best of Youth, The (La meglio gioventù) (2003) (id:7767), rating: 4.885987654402102
Benji the Hunted (1987) (id:3673), rating: 4.8774032027162875
My Dinner with André (1981) (id:5772), rating: 4.857772522232138
Atomic Cafe, The (1982) (id:5288), rating: 4.8517173909696085
17. User 211 top 10 recommendations are:
Black Mirror: White Christmas (2014) (id:174053), rating: 5
Come and See (Idi i smotri) (1985) (id:6818), rating: 5
Enter the Void (2009) (id:78836), rating: 5
Belle époque (1992) (id:6442), rating: 5
Why Don't You Play In Hell? (Jigoku de naze warui) (2013) (id:109968), rating: 4.982161734913138
Scratch (2001) (id:5137), rating: 4.9789112818082035
American: The Bill Hicks Story (2009) (id:86290), rating: 4.9696655776391205
Gentlemen of Fortune (Dzhentlmeny udachi) (1972) (id:74727), rating: 4.953733242066593
Beloved (1998) (id:2314), rating: 4.9426395859161705
Planet Earth II (2016) (id:171011), rating: 4.937962160469118
18. User 168 top 10 recommendations are:
Trial, The (Procès, Le) (1962) (id:6460), rating: 5
Belle époque (1992) (id:6442), rating: 5
My Man Godfrey (1936) (id:947), rating: 4.999999999999999
Woman in the Dunes (Suna no onna) (1964) (id:3224), rating: 4.999999999999999
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 4.999999999999999
Prophet, A (Un Prophète) (2009) (id:73344), rating: 4.985428855173051
Vanya on 42nd Street (1994) (id:334), rating: 4.97221382427418
Jeremiah Johnson (1972) (id:3074), rating: 4.953010990462724
Affair to Remember, An (1957) (id:932), rating: 4.948328138318389
Mind Game (2004) (id:47404), rating: 4.916475853881847
19. User 160 top 10 recommendations are:
Lesson Faust (1994) (id:1151), rating: 5
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 5
Heidi Fleiss: Hollywood Madam (1995) (id:99), rating: 5
Belle époque (1992) (id:6442), rating: 5
Enter the Void (2009) (id:78836), rating: 4.999999999999999
Anne of Green Gables: The Sequel (a.k.a. Anne of Avonlea) (1987) (id:74282), rating: 4.971749747281233
Black Mirror: White Christmas (2014) (id:174053), rating: 4.931558299970429
Imposter, The (2012) (id:97866), rating: 4.90124152278337
Trial, The (Procès, Le) (1962) (id:6460), rating: 4.894203617027938
The Pacific (2010) (id:126430), rating: 4.88461193288423
20. User 589 top 10 recommendations are:
Louis C.K.: Live at the Beacon Theater (2011) (id:92535), rating: 5
Eddie Murphy Delirious (1983) (id:26471), rating: 5
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 5
Heidi Fleiss: Hollywood Madam (1995) (id:99), rating: 4.999999999999999
Belle époque (1992) (id:6442), rating: 4.999999999999999
Paranormal Activity 2 (2010) (id:81417), rating: 4.917576531441935
Trial, The (Procès, Le) (1962) (id:6460), rating: 4.879669169924912
Dallas Buyers Club (2013) (id:106100), rating: 4.858014274349341
Day of the Doctor, The (2013) (id:106642), rating: 4.845256281640475
Wild Parrots of Telegraph Hill, The (2003) (id:32582), rating: 4.840804655308695
21. User 524 top 10 recommendations are:
Heidi Fleiss: Hollywood Madam (1995) (id:99), rating: 5
Come and See (Idi i smotri) (1985) (id:6818), rating: 5
Belle époque (1992) (id:6442), rating: 5
Gozu (Gokudô kyôfu dai-gekijô: Gozu) (2003) (id:30745), rating: 4.9926512441763675
Dog Soldiers (2002) (id:5833), rating: 4.991850693156526
Dead or Alive: Hanzaisha (1999) (id:8142), rating: 4.977953732529104
Afterglow (1997) (id:1733), rating: 4.966766565410738
Chungking Express (Chung Hing sam lam) (1994) (id:123), rating: 4.947913122895772
Encounters at the End of the World (2008) (id:60333), rating: 4.944466970096992
My Dinner with André (1981) (id:5772), rating: 4.943555676821251
22. User 472 top 10 recommendations are:
Barcelona (1994) (id:417), rating: 5
Cyrano de Bergerac (1990) (id:1277), rating: 5
Adam's Rib (1949) (id:7121), rating: 5
Belle époque (1992) (id:6442), rating: 4.999999999999999
Dear Zachary: A Letter to a Son About His Father (2008) (id:65188), rating: 4.986337100814773
Where the Buffalo Roam (1980) (id:3235), rating: 4.982588693570468
Dead Snow (Død snø) (2009) (id:69275), rating: 4.959570554763586
Hamlet (1996) (id:1411), rating: 4.949491933777733
Magdalene Sisters, The (2002) (id:6591), rating: 4.882176723876681
Color Purple, The (1985) (id:2739), rating: 4.88027427713772
23. User 121 top 10 recommendations are:
What We Do in the Shadows (2014) (id:115122), rating: 5
Titanic (1953) (id:3404), rating: 5
Belle époque (1992) (id:6442), rating: 5
Wild Parrots of Telegraph Hill, The (2003) (id:32582), rating: 4.961032321557973
General, The (1926) (id:3022), rating: 4.932961796060193
Swept Away (Travolti da un insolito destino nell'azzurro mare d'Agosto) (1975) (id:2239), rating: 4.925885896537594
Louis C.K.: Live at the Beacon Theater (2011) (id:92535), rating: 4.925296988565208
Victory (a.k.a. Escape to Victory) (1981) (id:5915), rating: 4.915817226856405
Louis C.K.: Hilarious (2010) (id:86345), rating: 4.910873866089389
My Architect: A Son's Journey (2003) (id:6945), rating: 4.8830969646739195
24. User 12 top 10 recommendations are:
Dunkirk (2017) (id:174055), rating: 4.980969321621203
Hell or High Water (2016) (id:161582), rating: 4.971453982431805
Swimming with Sharks (1995) (id:322), rating: 4.971453982431805
After the Sunset (2004) (id:8968), rating: 4.967312574850754
Big Short, The (2015) (id:148626), rating: 4.961938643242407
Baby Driver (2017) (id:171763), rating: 4.961938643242407
The Big Sick (2017) (id:168326), rating: 4.961938643242407
Cop Land (1997) (id:1589), rating: 4.961938643242407
No Way Out (1987) (id:3505), rating: 4.952423304053008
Chitty Chitty Bang Bang (1968) (id:7247), rating: 4.948745693193286
25. User 241 top 10 recommendations are:
Reign Over Me (2007) (id:51931), rating: 5
Joint Security Area (Gongdong gyeongbi guyeok JSA) (2000) (id:27397), rating: 5
Yi Yi (2000) (id:4334), rating: 5
Enter the Void (2009) (id:78836), rating: 5
Topo, El (1970) (id:26258), rating: 4.999999999999999
Angels and Insects (1995) (id:85), rating: 4.999999999999999
Man from Earth, The (2007) (id:55908), rating: 4.940268348754411
Best of Youth, The (La meglio gioventù) (2003) (id:7767), rating: 4.92738771402177
Endless Summer, The (1966) (id:3653), rating: 4.923071848594213
Jean de Florette (1986) (id:1131), rating: 4.920699086076881
26. User 77 top 10 recommendations are:
Black Mirror: White Christmas (2014) (id:174053), rating: 5
Dog Soldiers (2002) (id:5833), rating: 5
Journey to the West: Conquering the Demons (Daai wa sai you chi Chui mo chun kei) (2013) (id:100882), rating: 4.9420931085762065
Room with a View, A (1986) (id:1296), rating: 4.91327448032519
Day of the Doctor, The (2013) (id:106642), rating: 4.869011566393395
Creature Comforts (1989) (id:3429), rating: 4.867595581361457
Victory (a.k.a. Escape to Victory) (1981) (id:5915), rating: 4.845684501006257
Sherlock - A Study in Pink (2010) (id:185135), rating: 4.836202150945843
Chorus Line, A (1985) (id:6345), rating: 4.816018956860434
Cyrano de Bergerac (1990) (id:1277), rating: 4.797096885026223
27. User 193 top 10 recommendations are:
Deadpool 2 (2018) (id:187593), rating: 5
Meet Me in St. Louis (1944) (id:918), rating: 5
Trial, The (Procès, Le) (1962) (id:6460), rating: 4.999999999999999
My Man Godfrey (1936) (id:947), rating: 4.999999999999999
Woman in the Dunes (Suna no onna) (1964) (id:3224), rating: 4.999999999999999
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 4.999999999999999
Belle époque (1992) (id:6442), rating: 4.999999999999999
Mr. Nobody (2009) (id:79357), rating: 4.9703177961110425
Day of the Doctor, The (2013) (id:106642), rating: 4.96756264326021
Harakiri (Seppuku) (1962) (id:26082), rating: 4.967434967217121
28. User 395 top 10 recommendations are:
High Plains Drifter (1973) (id:2921), rating: 5
Ordinary People (1980) (id:1956), rating: 5
Kramer vs. Kramer (1979) (id:1955), rating: 5
Dancer in the Dark (2000) (id:3910), rating: 5
Yojimbo (1961) (id:3030), rating: 4.999999999999999
Flickering Lights (Blinkende lygter) (2000) (id:6300), rating: 4.896144936486985
Benji (1974) (id:3672), rating: 4.869516869755747
Five Easy Pieces (1970) (id:3201), rating: 4.858078498166884
Lincoln (2012) (id:98154), rating: 4.848073217418982
Cinema Paradiso (Nuovo cinema Paradiso) (1989) (id:1172), rating: 4.8021953467709775
29. User 76 top 10 recommendations are:
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 5
Enter the Void (2009) (id:78836), rating: 5
Belle époque (1992) (id:6442), rating: 5
Black Dynamite (2009) (id:72171), rating: 4.896852867120616
Rare Exports: A Christmas Tale (Rare Exports) (2010) (id:82242), rating: 4.88418822188092
What We Do in the Shadows (2014) (id:115122), rating: 4.880498921870025
Man Who Shot Liberty Valance, The (1962) (id:4406), rating: 4.879791790959441
Sherlock - A Study in Pink (2010) (id:185135), rating: 4.864205324672424
Hands on a Hard Body (1996) (id:2330), rating: 4.8556360447762525
Incendies (2010) (id:86781), rating: 4.854237286844887
30. User 85 top 10 recommendations are:
Ghost in the Shell (Kôkaku kidôtai) (1995) (id:741), rating: 5
Amores Perros (Love's a Bitch) (2000) (id:4235), rating: 5
Celebration, The (Festen) (1998) (id:2360), rating: 5
It Happened One Night (1934) (id:905), rating: 5
Woman in the Dunes (Suna no onna) (1964) (id:3224), rating: 5
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 5
My Fair Lady (1964) (id:914), rating: 4.984036378210643
Guess Who's Coming to Dinner (1967) (id:3451), rating: 4.980040336754226
Yojimbo (1961) (id:3030), rating: 4.966532666624178
Slumdog Millionaire (2008) (id:63082), rating: 4.9627725187237015
31. User 277 top 10 recommendations are:
Love and Death (1975) (id:3814), rating: 5
Belle époque (1992) (id:6442), rating: 5
Last Detail, The (1973) (id:3200), rating: 4.8359326958092765
Flickering Lights (Blinkende lygter) (2000) (id:6300), rating: 4.8152313976873895
Impostors, The (1998) (id:2295), rating: 4.781618542785941
Avengers: Infinity War - Part I (2018) (id:122912), rating: 4.757770114900725
Day of the Doctor, The (2013) (id:106642), rating: 4.757770114900725
The Raid: Redemption (2011) (id:93838), rating: 4.757365724550691
Inception (2010) (id:79132), rating: 4.7532806821422335
Babette's Feast (Babettes gæstebud) (1987) (id:6791), rating: 4.743453875695472
32. User 493 top 10 recommendations are:
Band of Brothers (2001) (id:170705), rating: 5
Trial, The (Procès, Le) (1962) (id:6460), rating: 4.991293638196293
Anne of Green Gables (1985) (id:26528), rating: 4.983657785726654
Jean de Florette (1986) (id:1131), rating: 4.97930637008245
Beautiful People (1999) (id:3302), rating: 4.947902910156589
My Dinner with André (1981) (id:5772), rating: 4.94194194950445
Princess and the Frog, The (2009) (id:72737), rating: 4.931345687659027
The Pacific (2010) (id:126430), rating: 4.9296964473822555
Black Mirror: White Christmas (2014) (id:174053), rating: 4.9245224336521085
Perfect Candidate, A (1996) (id:1123), rating: 4.9240498077537485
33. User 436 top 10 recommendations are:
Band of Brothers (2001) (id:170705), rating: 5
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 5
Titanic (1953) (id:3404), rating: 5
Heidi Fleiss: Hollywood Madam (1995) (id:99), rating: 5
Enter the Void (2009) (id:78836), rating: 4.999999999999999
Belle époque (1992) (id:6442), rating: 4.999999999999999
Harakiri (Seppuku) (1962) (id:26082), rating: 4.9967564531169515
Anne of Green Gables: The Sequel (a.k.a. Anne of Avonlea) (1987) (id:74282), rating: 4.988599403659784
Conversations with Other Women (2005) (id:48342), rating: 4.978073131828693
Gozu (Gokudô kyôfu dai-gekijô: Gozu) (2003) (id:30745), rating: 4.95515492465146
34. User 265 top 10 recommendations are:
Vanya on 42nd Street (1994) (id:334), rating: 5
Woman in the Dunes (Suna no onna) (1964) (id:3224), rating: 5
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 5
Belle époque (1992) (id:6442), rating: 5
Stranger Than Paradise (1984) (id:3925), rating: 4.932707033608982
Happy Together (a.k.a. Buenos Aires Affair) (Chun gwong cha sit) (1997) (id:7486), rating: 4.901073324459215
Bad Boy Bubby (1993) (id:26810), rating: 4.900622147687756
Truly, Madly, Deeply (1991) (id:5034), rating: 4.876407509107472
Adam's Rib (1949) (id:7121), rating: 4.875246425318888
Planet Earth II (2016) (id:171011), rating: 4.8749670640141005
35. User 218 top 10 recommendations are:
Enter the Void (2009) (id:78836), rating: 5
Belle époque (1992) (id:6442), rating: 5
Umbrellas of Cherbourg, The (Parapluies de Cherbourg, Les) (1964) (id:199), rating: 4.925002971392508
Trial, The (Procès, Le) (1962) (id:6460), rating: 4.9213633605108065
General, The (1926) (id:3022), rating: 4.914890262538091
Eat Drink Man Woman (Yin shi nan nu) (1994) (id:232), rating: 4.90973928130844
Guys and Dolls (1955) (id:3549), rating: 4.891940834711312
Day of the Doctor, The (2013) (id:106642), rating: 4.879535338535858
Wild Parrots of Telegraph Hill, The (2003) (id:32582), rating: 4.872652043082527
Guess Who's Coming to Dinner (1967) (id:3451), rating: 4.85594307215616
36. User 248 top 10 recommendations are:
Crank (2006) (id:47200), rating: 5
Just Go with It (2011) (id:85367), rating: 5
What We Do in the Shadows (2014) (id:115122), rating: 5
Band of Brothers (2001) (id:170705), rating: 4.999999999999999
Solo: A Star Wars Story (2018) (id:187595), rating: 4.987047613501993
Taken 2 (2012) (id:96861), rating: 4.98420197493061
Star Wars: The Last Jedi (2017) (id:179819), rating: 4.98057142025299
The Boss Baby (2017) (id:168418), rating: 4.979734075348463
Sherlock: The Abominable Bride (2016) (id:150548), rating: 4.966069523943348
Dr. Seuss' The Lorax (2012) (id:93272), rating: 4.942458636557199
37. User 321 top 10 recommendations are:
Wings of Desire (Himmel über Berlin, Der) (1987) (id:1211), rating: 5
Ordinary People (1980) (id:1956), rating: 5
Belle époque (1992) (id:6442), rating: 5
Frankenstein (1931) (id:2648), rating: 4.999999999999999
Lone Star (1996) (id:800), rating: 4.970772608262846
Descent, The (2005) (id:40732), rating: 4.965949539778797
Near Dark (1987) (id:3727), rating: 4.9641359294372425
Fast Food Nation (2006) (id:49347), rating: 4.9640098137792155
7th Voyage of Sinbad, The (1958) (id:3153), rating: 4.957565476818052
Guess Who's Coming to Dinner (1967) (id:3451), rating: 4.954872965150551
38. User 11 top 10 recommendations are:
Band of Brothers (2001) (id:170705), rating: 5
Enter the Void (2009) (id:78836), rating: 5
Belle époque (1992) (id:6442), rating: 5
Priest (1994) (id:299), rating: 4.999999999999999
Best of Youth, The (La meglio gioventù) (2003) (id:7767), rating: 4.988522196802248
Trial, The (Procès, Le) (1962) (id:6460), rating: 4.936918132752437
Encounters at the End of the World (2008) (id:60333), rating: 4.90373136133877
Dinner Game, The (Dîner de cons, Le) (1998) (id:2696), rating: 4.8818570376564665
Harakiri (Seppuku) (1962) (id:26082), rating: 4.864724047369962
My Dinner with André (1981) (id:5772), rating: 4.849975473782122
39. User 90 top 10 recommendations are:
General, The (1926) (id:3022), rating: 5
Breathless (À bout de souffle) (1960) (id:4914), rating: 5
Last Picture Show, The (1971) (id:3152), rating: 5
Priest (1994) (id:299), rating: 5
Wings of the Dove, The (1997) (id:1683), rating: 5
Burnt by the Sun (Utomlyonnye solntsem) (1994) (id:213), rating: 5
You Can Count on Me (2000) (id:3983), rating: 5
All About My Mother (Todo sobre mi madre) (1999) (id:3083), rating: 4.935478511046289
Stranger Than Paradise (1984) (id:3925), rating: 4.866960081116758
Paths of Glory (1957) (id:1178), rating: 4.856264174617073
40. User 549 top 10 recommendations are:
Shadow of a Doubt (1943) (id:2203), rating: 5
Sullivan's Travels (1941) (id:2936), rating: 5
The Raid 2: Berandal (2014) (id:110501), rating: 5
Enter the Void (2009) (id:78836), rating: 5
The Artist (2011) (id:89904), rating: 4.986031622167884
The Pacific (2010) (id:126430), rating: 4.98510669954514
Black Mirror: White Christmas (2014) (id:174053), rating: 4.961931109868407
Wild Bunch, The (1969) (id:599), rating: 4.9617338376199465
Jeremiah Johnson (1972) (id:3074), rating: 4.947581826371722
Brooklyn (2015) (id:127108), rating: 4.943941105212575
41. User 229 top 10 recommendations are:
Band of Brothers (2001) (id:170705), rating: 5
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 5
Titanic (1953) (id:3404), rating: 5
Enter the Void (2009) (id:78836), rating: 5
Belle époque (1992) (id:6442), rating: 5
Jules and Jim (Jules et Jim) (1961) (id:2732), rating: 4.9312405180581615
Imposter, The (2012) (id:97866), rating: 4.928553868846053
Trial, The (Procès, Le) (1962) (id:6460), rating: 4.915714237110067
Swept Away (Travolti da un insolito destino nell'azzurro mare d'Agosto) (1975) (id:2239), rating: 4.914856808871624
Hands on a Hard Body (1996) (id:2330), rating: 4.9058466453014296
42. User 289 top 10 recommendations are:
It Happened One Night (1934) (id:905), rating: 5
Eat Drink Man Woman (Yin shi nan nu) (1994) (id:232), rating: 4.9328229352256825
Umbrellas of Cherbourg, The (Parapluies de Cherbourg, Les) (1964) (id:199), rating: 4.919404281037525
Wings of Desire (Himmel über Berlin, Der) (1987) (id:1211), rating: 4.879852641177546
Chorus, The (Choristes, Les) (2004) (id:27815), rating: 4.879613726487864
Celebration, The (Festen) (1998) (id:2360), rating: 4.8535166611494605
Meet Me in St. Louis (1944) (id:918), rating: 4.841585927268495
Shall We Dance? (Shall We Dansu?) (1996) (id:1537), rating: 4.83880856207505
Lady Eve, The (1941) (id:2935), rating: 4.83880856207505
Born Yesterday (1950) (id:3341), rating: 4.83880856207505
43. User 290 top 10 recommendations are:
What We Do in the Shadows (2014) (id:115122), rating: 5
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 5
Heidi Fleiss: Hollywood Madam (1995) (id:99), rating: 5
Belle époque (1992) (id:6442), rating: 5
Gentlemen of Fortune (Dzhentlmeny udachi) (1972) (id:74727), rating: 4.959241711523858
Baraka (1992) (id:3677), rating: 4.9573495633413165
Trial, The (Procès, Le) (1962) (id:6460), rating: 4.948613263077958
Celluloid Closet, The (1995) (id:581), rating: 4.943249679291831
Before Midnight (2013) (id:100714), rating: 4.938860326115064
Beautiful Thing (1996) (id:1046), rating: 4.934455739889577
44. User 610 top 10 recommendations are:
Vanya on 42nd Street (1994) (id:334), rating: 5
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 5
Heidi Fleiss: Hollywood Madam (1995) (id:99), rating: 5
Come and See (Idi i smotri) (1985) (id:6818), rating: 5
Belle époque (1992) (id:6442), rating: 5
The Godfather Trilogy: 1972-1990 (1992) (id:172591), rating: 4.990227437813828
The Pacific (2010) (id:126430), rating: 4.94813230005144
Black Mirror: White Christmas (2014) (id:174053), rating: 4.945179845231452
Doctor Who: A Christmas Carol (2010) (id:147376), rating: 4.92303980274259
Planet Earth II (2016) (id:171011), rating: 4.914286863217712
45. User 257 top 10 recommendations are:
Singin' in the Rain (1952) (id:899), rating: 5
General, The (1926) (id:3022), rating: 5
Bringing Up Baby (1938) (id:955), rating: 5
True Grit (1969) (id:3494), rating: 5
How to Train Your Dragon (2010) (id:76093), rating: 4.993391739236882
Harry Potter and the Deathly Hallows: Part 1 (2010) (id:81834), rating: 4.993391739236882
Dallas Buyers Club (2013) (id:106100), rating: 4.99039184596545
Graduate, The (1967) (id:1247), rating: 4.947136997277124
Captain Phillips (2013) (id:105504), rating: 4.93656355892064
Yojimbo (1961) (id:3030), rating: 4.931794519001121
46. User 478 top 10 recommendations are:
Adam's Rib (1949) (id:7121), rating: 5
Dallas Buyers Club (2013) (id:106100), rating: 4.999999999999999
Gladiator (1992) (id:8132), rating: 4.85555978028122
Dog Soldiers (2002) (id:5833), rating: 4.850581316652551
Sophie Scholl: The Final Days (Sophie Scholl - Die letzten Tage) (2005) (id:43376), rating: 4.838913484983539
Once Upon a Time in America (1984) (id:1227), rating: 4.835763442412536
Dear Zachary: A Letter to a Son About His Father (2008) (id:65188), rating: 4.830680909763472
Dawn of the Dead (1978) (id:7387), rating: 4.828355747683167
Black Cat, White Cat (Crna macka, beli macor) (1998) (id:2843), rating: 4.772608644691637
Assassination of Jesse James by the Coward Robert Ford, The (2007) (id:55363), rating: 4.763205942205961
47. User 323 top 10 recommendations are:
What We Do in the Shadows (2014) (id:115122), rating: 5
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 5
Titanic (1953) (id:3404), rating: 5
Belle époque (1992) (id:6442), rating: 5
Heidi Fleiss: Hollywood Madam (1995) (id:99), rating: 4.999999999999999
Best of Youth, The (La meglio gioventù) (2003) (id:7767), rating: 4.976567454187338
The Pacific (2010) (id:126430), rating: 4.9512118689566655
Beautiful Thing (1996) (id:1046), rating: 4.923268828841898
Celluloid Closet, The (1995) (id:581), rating: 4.886070230849625
Trial, The (Procès, Le) (1962) (id:6460), rating: 4.876471380701296
48. User 537 top 10 recommendations are:
Seven Years in Tibet (1997) (id:1619), rating: 5
Sherlock: The Abominable Bride (2016) (id:150548), rating: 4.98404115633519
Rise of the Guardians (2012) (id:98243), rating: 4.982991260924159
Black Panther (2017) (id:122906), rating: 4.982991260924159
Happiness (1998) (id:2318), rating: 4.978516837264444
The Pacific (2010) (id:126430), rating: 4.975624531836965
The Boss Baby (2017) (id:168418), rating: 4.975401830995019
The Night Before (2015) (id:142422), rating: 4.950235856518104
Black Mirror: White Christmas (2014) (id:174053), rating: 4.94520310192125
Grave of the Fireflies (Hotaru no haka) (1988) (id:5690), rating: 4.942484898674376
49. User 258 top 10 recommendations are:
Yojimbo (1961) (id:3030), rating: 5
Love and Death (1975) (id:3814), rating: 5
Black Mirror: White Christmas (2014) (id:174053), rating: 5
Belle époque (1992) (id:6442), rating: 5
Baraka (1992) (id:3677), rating: 4.980587002204508
Louis C.K.: Live at the Beacon Theater (2011) (id:92535), rating: 4.978629126486531
Cyrano de Bergerac (1990) (id:1277), rating: 4.968535304591743
Louis C.K.: Live at The Comedy Store (2015) (id:127098), rating: 4.9661782695774805
Departures (Okuribito) (2008) (id:66371), rating: 4.950003538742103
Warrior (2011) (id:89774), rating: 4.932356539154961
50. User 375 top 10 recommendations are:
Man from Earth, The (2007) (id:55908), rating: 5
Jonah Who Will Be 25 in the Year 2000 (Jonas qui aura 25 ans en l'an 2000) (1976) (id:3473), rating: 5
Enter the Void (2009) (id:78836), rating: 5
Belle époque (1992) (id:6442), rating: 4.999999999999999
Conversations with Other Women (2005) (id:48342), rating: 4.956867205419651
Jules and Jim (Jules et Jim) (1961) (id:2732), rating: 4.8745125609698565
Trial, The (Procès, Le) (1962) (id:6460), rating: 4.871609204468118
Wild Parrots of Telegraph Hill, The (2003) (id:32582), rating: 4.867108981321221
Swept Away (Travolti da un insolito destino nell'azzurro mare d'Agosto) (1975) (id:2239), rating: 4.8609818087511085
Wings of the Dove, The (1997) (id:1683), rating: 4.849198599703091