Instructions to use mohammadhossein20/emotion_roberta_weighted with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mohammadhossein20/emotion_roberta_weighted with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mohammadhossein20/emotion_roberta_weighted")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mohammadhossein20/emotion_roberta_weighted") model = AutoModelForSequenceClassification.from_pretrained("mohammadhossein20/emotion_roberta_weighted", device_map="auto") - Notebooks
- Google Colab
- Kaggle
emotion_roberta_weighted
This model is a fine-tuned version of roberta-base on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.1975
- Accuracy: 0.935
- Precision: 0.9422
- Recall: 0.935
- F1: 0.9366
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_FUSED 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 | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| 0.3662 | 1.0 | 1000 | 0.2459 | 0.9185 | 0.9224 | 0.9185 | 0.9195 |
| 0.186 | 2.0 | 2000 | 0.2337 | 0.9305 | 0.9353 | 0.9305 | 0.9317 |
| 0.1512 | 3.0 | 3000 | 0.2178 | 0.9325 | 0.9374 | 0.9325 | 0.9337 |
| 0.132 | 4.0 | 4000 | 0.1940 | 0.9385 | 0.9419 | 0.9385 | 0.9393 |
| 0.1047 | 5.0 | 5000 | 0.2536 | 0.9355 | 0.9386 | 0.9355 | 0.9364 |
Framework versions
- Transformers 4.57.2
- Pytorch 2.9.0+cu126
- Datasets 4.0.0
- Tokenizers 0.22.1
- Downloads last month
- 13
Model tree for mohammadhossein20/emotion_roberta_weighted
Base model
FacebookAI/roberta-base