-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
29 lines (23 loc) · 930 Bytes
/
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
MOVIE_NODE_FILE = './data/movieNode_1206.csv'
ACTOR_NODE_FILE = './data/castNode_simplified.csv'
DIRECTOR_NODE_FILE = './data/directorNode.csv'
MOVIE_ATTRIBUTES = {
'budget', 'genres', 'id', 'popularity',
'release_date', 'revenue', 'runtime', 'title',
'vote_average', 'vote_count', 'tagline', 'genres'
}
MOVIE_POP_THRES = 90 # slightly less than 10% -> ~500 movies
MOVIE_VOTE_CNT_THRES = 3000 # slightly more than 10% -> ~500 movies
MOVIE_YEAR_THRES = 1999
ACTOR_MOVIE_THRES = 10 # slightly less than 10% -> ~500 movies
DIRECTOR_MOVIE_THRES = 0
ACTOR_ATTRIBUTES = {'id', 'name', 'gender', 'movie_id'}
DIRECTOR_ATTRIBUTES = {'id', 'name', 'gender', 'movie_id'}
SCORE_ATTRIBUTES = [
'budget', 'popularity', 'revenue', 'runtime', 'vote_average', 'vote_count',
'movie_count'
]
GENRES = [
'Drama', 'Comedy', 'Thriller', 'Action', 'Romance', 'Adventure'
] # top 6 popular
PKL_SAVE_PATH = './data/nodes_all_in_one.pkl'