Instructions to use st125338/emotion-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use st125338/emotion-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="st125338/emotion-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("st125338/emotion-classifier") model = AutoModelForSequenceClassification.from_pretrained("st125338/emotion-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
emotion-classifier
This model is a fine-tuned version of bert-base-uncased on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.7630
- Micro F1: 0.4743
- Macro F1: 0.4187
- Accuracy: 0.9284
- Val Loss: 0.1911
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Micro F1 | Macro F1 | Accuracy | Val Loss |
|---|---|---|---|---|---|---|---|
| 0.5887 | 1.0 | 2714 | 0.6655 | 0.3691 | 0.3226 | 0.8809 | 0.3087 |
| 0.4807 | 2.0 | 5428 | 0.6454 | 0.4107 | 0.3698 | 0.9008 | 0.2557 |
| 0.5901 | 3.0 | 8142 | 0.6367 | 0.4199 | 0.3748 | 0.9060 | 0.2449 |
| 0.3005 | 4.0 | 10856 | 0.7228 | 0.4663 | 0.4101 | 0.9244 | 0.2012 |
| 0.281 | 5.0 | 13570 | 0.7800 | 0.4790 | 0.4259 | 0.9293 | 0.1889 |
Framework versions
- Transformers 4.49.0
- Pytorch 2.2.0+cu121
- Datasets 3.2.0
- Tokenizers 0.21.0
- Downloads last month
- 11
Model tree for st125338/emotion-classifier
Base model
google-bert/bert-base-uncased