-
Notifications
You must be signed in to change notification settings - Fork 0
/
objects.py
62 lines (58 loc) · 1.22 KB
/
objects.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
# list of audio features
audio_features_list = [
'danceability',
'energy',
'loudness',
'speechiness',
'acousticness',
'instrumentalness',
'valence'
]
# global maximum playlist averages across all playlists
global_playlist_maxes = {
'popularity': 0,
'duration_ms': 0,
'danceability': 0,
'energy': 0,
'loudness': -60,
'speechiness': 0,
'acousticness': 0,
'instrumentalness': 0,
'valence': 0,
}
# global minimum playlist averages across all playlists
global_playlist_mins = {
'popularity': 101,
'duration_ms': 300000,
'danceability': 1.1,
'energy': 1.1,
'loudness': 10,
'speechiness': 1.1,
'acousticness': 1.1,
'instrumentalness': 1.1,
'valence': 1.1,
}
# global averages across all playlists
library_averages = {
'popularity': 0,
'duration_ms': 0,
'danceability': 0,
'energy': 0,
'loudness': 0,
'speechiness': 0,
'acousticness': 0,
'instrumentalness': 0,
'valence': 0
}
# global maximum song values
song_maximums = {
'popularity': 0,
'duration_ms': 0,
'danceability': 0,
'energy': 0,
'loudness': -60,
'speechiness': 0,
'acousticness': 0,
'instrumentalness': 0,
'valence': 0,
}