Skip to content

Instantly share code, notes, and snippets.

@mayhem
Created April 1, 2018 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mayhem/6d60225f7baa3f68fadf1c84bcf9af13 to your computer and use it in GitHub Desktop.
Save mayhem/6d60225f7baa3f68fadf1c84bcf9af13 to your computer and use it in GitHub Desktop.
Load playcounts...
Load recording ids...
Calculate statistics...
Loaded 2537767 playcounts from 1368 users on 869724 recordings.
Training: 1690830, validation: 423149, test: 423788
18/04/01 10:09:38 WARN BLAS: Failed to load implementation from: com.github.fommil.netlib.NativeSystemBLAS
18/04/01 10:09:38 WARN BLAS: Failed to load implementation from: com.github.fommil.netlib.NativeRefBLAS
RMSE (validation) = 5.522672 for the model trained with rank = 8, lambda = 0.1, and numIter = 10.
RMSE (validation) = 5.520957 for the model trained with rank = 8, lambda = 0.1, and numIter = 20.
RMSE (validation) = 5.573509 for the model trained with rank = 8, lambda = 10.0, and numIter = 10.
RMSE (validation) = 5.573451 for the model trained with rank = 8, lambda = 10.0, and numIter = 20.
RMSE (validation) = 5.518875 for the model trained with rank = 12, lambda = 0.1, and numIter = 10.
RMSE (validation) = 5.517697 for the model trained with rank = 12, lambda = 0.1, and numIter = 20.
RMSE (validation) = 5.573463 for the model trained with rank = 12, lambda = 10.0, and numIter = 10.
RMSE (validation) = 5.573473 for the model trained with rank = 12, lambda = 10.0, and numIter = 20.
The best model was trained with rank = 12 and lambda = 0.1, and numIter = 20, and its RMSE on the test set is 5.428324.
The best model improves the baseline by 1.46%.
Doing recommendations now...
Number of user recordings: 2523
Number of recordings: 869724
Number of candidates: 867201
user id = 107
recordings recommended for you:
1: ['Xtal']
2: ['Wish You Were Here']
3: ['Reunion']
4: ['Moonlight And Magnolias']
5: ['Life in the Rain']
6: ['Near Light']
7: ['Terrapin']
8: ['Archangel']
9: ['The Boys Are Back in Town']
10: ['Something About Us']
11: ['Everything You Do Is a Balloon']
12: ['Harder, Better, Faster, Stronger']
13: ['Prelude']
14: ['Says']
15: ['The Rip']
16: ['Paint It Black']
17: ['Röyksopp Forever']
18: ['Pastoral']
19: ['Song 2']
20: ['Midnight in a Perfect World']
21: ['Talisman']
22: ['Lady (Hear Me Tonight)']
23: ['All Along The Watchtower']
24: ['Cornfield Chase']
25: ['Give It Away']
26: ["Ramblin' Man"]
27: ['Carnivores Unite']
28: ['Wolf Drawn']
29: ['Wind of Change']
30: ['Hours']
31: ['Us and Them']
32: ['Outlaw']
33: ['After the Guiding Venus']
34: ['Kid for Today']
35: ['Time']
36: ['Familiar']
37: ['Pick Up']
38: ['Walking on a Dream']
39: ['Ptolemy']
40: ['Where Is My Mind?']
41: ['Africa']
42: ['Inside']
43: ['Coastal Brake']
44: ['Nothing Owed']
45: ['Sympathy for the Devil']
46: ['Another One Bites the Dust']
47: ['Late Night (Solomun Remix)']
48: ['Swords']
49: ['Vainamoinen']
50: ['Black Sands']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment