KhaldiAbderrhmane
commited on
Update configuration_emotion_classifier.py
Browse files
configuration_emotion_classifier.py
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
from transformers import PretrainedConfig
|
2 |
|
3 |
-
class EmotionClassifierConfig(
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
super().__init__(**kwargs)
|
13 |
self.hidden_size = hidden_size
|
14 |
self.num_classes = num_classes
|
|
|
|
1 |
+
from transformers import HubertConfig, PretrainedConfig
|
2 |
|
3 |
+
class EmotionClassifierConfig(HubertConfig):
|
4 |
+
def __init__(self, hidden_size=128, num_classes=6, **kwargs):
|
5 |
+
super().__init__(
|
6 |
+
encoder_layers=12, # Default value from HubertConfig
|
7 |
+
encoder_attention_heads=12, # Default value from HubertConfig
|
8 |
+
encoder_ffn_dim=3072, # Default value from HubertConfig
|
9 |
+
# Add other required parameters from HubertConfig here
|
10 |
+
**kwargs
|
11 |
+
)
|
|
|
12 |
self.hidden_size = hidden_size
|
13 |
self.num_classes = num_classes
|
14 |
+
|