-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
72 lines (59 loc) · 1.78 KB
/
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
70
71
72
"""
configuration stuff
"""
DB_FILENAME = 'datastore/swagmaster-with-intervals.db'
HOTFILTER = "WHERE song_hotttnesss>0 AND artist_hotttnesss>0 AND beats_avg>0 AND bars_avg>0"
TRAIN_FRAC = 0.60
CV_FRAC = 0.20
TEST_FRAC = 1 - TRAIN_FRAC - CV_FRAC
INDEX_track_id = 0
INDEX_title = 1
INDEX_song_id = 2
INDEX_release = 3
INDEX_artist_id = 4
INDEX_artist_mbid = 5
INDEX_artist_name = 6
INDEX_duration = 7
INDEX_artist_familiarity = 8
INDEX_artist_hotttnesss = 9
INDEX_year = 10
INDEX_track_7digitalid = 11
INDEX_shs_perf = 12
INDEX_shs_work = 13
INDEX_song_hotttnesss = 14
INDEX_danceability = 15
INDEX_energy = 16
INDEX_key = 17
INDEX_tempo = 18
INDEX_loudness = 19
INDEX_time_signature = 20
INDEX_segments_avg = 21
INDEX_tatums_avg = 22
INDEX_beats_avg = 23
INDEX_bars_avg = 24
INDEX_sections_avg = 25
# # Acoustic Features
# + key
# + tempo
# + loudness
# + time_signature
# + tatums_avg
# + segments_avg
# + beats_avg
# + bars_avg
# + sections_avg
acoustic_features = """
key tempo loudness time_signature tatums_avg segments_avg
beats_avg bars_avg sections_avg
""".split()
# # Metadata Features
# + duration
# + artist_familiartiy
# + artist_hotttnesss
metadata_feaures = "duration artist_hotttnesss artist_familiarity".split()
# # New features
# + energy
# + danceability
constructed_features = "energy danceability".split()
energy_features = "energy1 energy2 energy3 energy4".split()
dance_features = "dance1 dance2 dance3 dance4".split()