-
Notifications
You must be signed in to change notification settings - Fork 53
/
rec_config.py
69 lines (64 loc) · 1.7 KB
/
rec_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
def get_rec_config(dataset):
link_ds = ['movie1M','movie100K','imdb', 'movie20M',
'amazonFood','amazonHome','amazonKindle',
'amazonAndroid', 'anime',
'amazonVideo','amazonElectronics','books',
'netflixPrize','jester','goodbooks','amazonClothes',
'amazonBeauty','amazonCDS','amazonSports', 'pinterest',
'lastFM','YahooMusic']
if(dataset in link_ds):
data_link = '../deep_cf'
else:
data_link = '.'
if('yelp17' in dataset):
max_val = 5
min_val = 1
elif('gowalla' in dataset):
max_val = 1
min_val = 0
elif('yelp18' in dataset):
max_val = 5
min_val = 1
elif("Amazon" in dataset or 'A2' in dataset):
max_val = 5
min_val = 1
elif(dataset=='imdb'):
max_val = 10
min_val = 1
elif('movie1M' in dataset):
max_val = 5
min_val = 0.5
elif('movie20M' in dataset):
max_val = 5
min_val = 0.5
elif('movie100K' in dataset):
max_val = 5
min_val = 1
elif('pinterest' in dataset):
max_val = 1
min_val = 0
elif('Yahoo' in dataset):
max_val = 5
min_val = 1
elif('amazon' in dataset):
max_val = 5
min_val = 0
elif(dataset=='books'):
max_val = 10
min_val = 0
elif('anime' in dataset):
max_val = 10
min_val = 0
elif('netflixPrize' in dataset):
max_val = 5
min_val = 1
elif('jester' in dataset):
min_val = -10
max_val = 10
elif('goodbooks' in dataset):
min_val = 1
max_val = 5
elif('lastFM' in dataset):
min_val = 1
max_val = 10
return max_val, min_val, data_link