dair-ai/emotion
Viewer • Updated • 437k • 33.2k • 440
How to use cduncanja/emotion_model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="cduncanja/emotion_model") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("cduncanja/emotion_model")
model = AutoModelForSequenceClassification.from_pretrained("cduncanja/emotion_model")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("cduncanja/emotion_model")
model = AutoModelForSequenceClassification.from_pretrained("cduncanja/emotion_model")This model is a fine-tuned version of microsoft/MiniLM-L12-H384-uncased 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 | F1 |
|---|---|---|---|---|
| 1.7968 | 1.0 | 2 | 1.7804 | 0.2286 |
| 1.7918 | 2.0 | 4 | 1.7812 | 0.2286 |
| 1.7867 | 3.0 | 6 | 1.7822 | 0.08 |
| 1.7884 | 4.0 | 8 | 1.7816 | 0.08 |
| 1.7833 | 5.0 | 10 | 1.7815 | 0.1455 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cduncanja/emotion_model")