dair-ai/emotion
Viewer • Updated • 437k • 35.5k • 446
How to use gokuls/bert_uncased_L-4_H-128_A-2_emotion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="gokuls/bert_uncased_L-4_H-128_A-2_emotion") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("gokuls/bert_uncased_L-4_H-128_A-2_emotion")
model = AutoModelForSequenceClassification.from_pretrained("gokuls/bert_uncased_L-4_H-128_A-2_emotion")This model is a fine-tuned version of google/bert_uncased_L-4_H-128_A-2 on the emotion dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 1.4323 | 1.0 | 250 | 1.1059 | 0.6495 |
| 0.9588 | 2.0 | 500 | 0.7596 | 0.788 |
| 0.6816 | 3.0 | 750 | 0.5526 | 0.8505 |
| 0.5074 | 4.0 | 1000 | 0.4233 | 0.895 |
| 0.4131 | 5.0 | 1250 | 0.3628 | 0.906 |
| 0.3536 | 6.0 | 1500 | 0.3261 | 0.9015 |
| 0.3128 | 7.0 | 1750 | 0.2960 | 0.911 |
| 0.2905 | 8.0 | 2000 | 0.2894 | 0.9125 |
| 0.2765 | 9.0 | 2250 | 0.2776 | 0.916 |
| 0.2682 | 10.0 | 2500 | 0.2728 | 0.915 |
Base model
google/bert_uncased_L-4_H-128_A-2