You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+54-53Lines changed: 54 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,31 +42,12 @@ In this repository, we have used the most used features that are available in [l
42
42
- Contrast
43
43
- Tonnetz (tonal centroid features)
44
44
45
-
## Algorithms Used
46
-
This repository can be used to build machine learning classifiers as well as regressors for the case of 3 emotions {'sad': 0, 'neutral': 1, 'happy': 2} and the case of 5 emotions {'angry': 1, 'sad': 2, 'neutral': 3, 'ps': 4, 'happy': 5}
47
-
### Classifiers
48
-
- SVC
49
-
- RandomForestClassifier
50
-
- GradientBoostingClassifier
51
-
- KNeighborsClassifier
52
-
- MLPClassifier
53
-
- BaggingClassifier
54
-
- Recurrent Neural Networks (Keras)
55
-
### Regressors
56
-
- SVR
57
-
- RandomForestRegressor
58
-
- GradientBoostingRegressor
59
-
- KNeighborsRegressor
60
-
- MLPRegressor
61
-
- BaggingRegressor
62
-
- Recurrent Neural Networks (Keras)
63
-
64
45
## Grid Search
65
46
Grid search results are already provided in `grid` folder, but if you want to tune various grid search parameters in `parameters.py`, you can run the script `grid_search.py` by:
66
47
```
67
48
python grid_search.py
68
49
```
69
-
This may take several hours to complete execution, once it is finished, results are stored in `grid`.
50
+
This may take several hours to complete execution, once it is finished, results are stored in `grid` folder.
70
51
71
52
## Example 1: Using 3 Emotions
72
53
The way to build and train a model for classifying 3 emotions is as shown below:
This repository can be used to build machine learning classifiers as well as regressors for the case of 3 emotions {'sad': 0, 'neutral': 1, 'happy': 2} and the case of 5 emotions {'angry': 1, 'sad': 2, 'neutral': 3, 'ps': 4, 'happy': 5}
138
+
### Classifiers
139
+
- SVC
140
+
- RandomForestClassifier
141
+
- GradientBoostingClassifier
142
+
- KNeighborsClassifier
143
+
- MLPClassifier
144
+
- BaggingClassifier
145
+
- Recurrent Neural Networks (Keras)
146
+
### Regressors
147
+
- SVR
148
+
- RandomForestRegressor
149
+
- GradientBoostingRegressor
150
+
- KNeighborsRegressor
151
+
- MLPRegressor
152
+
- BaggingRegressor
153
+
- Recurrent Neural Networks (Keras)
154
+
122
155
### Testing
123
156
You can test your own voice by executing the following command:
124
157
```
@@ -153,39 +186,7 @@ optional arguments:
153
186
is "BaggingClassifier"
154
187
155
188
```
156
-
## Example 2: Using RNNs for 5 Emotions
157
-
```python
158
-
from deep_emotion_recognition import DeepEmotionRecognizer
159
-
# initialize instance
160
-
# inherited from emotion_recognition.EmotionRecognizer
0 commit comments