Text Classification
Transformers
Safetensors
xlm-roberta
Generated from Trainer
text-embeddings-inference
Instructions to use mljn/roberta-economy-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mljn/roberta-economy-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mljn/roberta-economy-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mljn/roberta-economy-classifier") model = AutoModelForSequenceClassification.from_pretrained("mljn/roberta-economy-classifier") - Notebooks
- Google Colab
- Kaggle
roberta-economy-classifier
This model is a fine-tuned version of xlm-roberta-base on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.4600
- Accuracy: 0.9238
- F1: 0.8623
- Precision: 0.8471
- Recall: 0.8780
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: 1e-05
- train_batch_size: 8
- 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
- lr_scheduler_warmup_steps: 50
- num_epochs: 6
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.4903 | 1.0 | 151 | 0.3469 | 0.8841 | 0.7799 | 0.8052 | 0.7561 |
| 0.3302 | 2.0 | 302 | 0.2909 | 0.9172 | 0.8447 | 0.8608 | 0.8293 |
| 0.2429 | 3.0 | 453 | 0.3731 | 0.9040 | 0.8079 | 0.8841 | 0.7439 |
| 0.2799 | 4.0 | 604 | 0.4371 | 0.9205 | 0.8481 | 0.8816 | 0.8171 |
| 0.2264 | 5.0 | 755 | 0.4598 | 0.9238 | 0.8623 | 0.8471 | 0.8780 |
| 0.0395 | 6.0 | 906 | 0.4709 | 0.9205 | 0.8554 | 0.8452 | 0.8659 |
Framework versions
- Transformers 5.0.0
- Pytorch 2.10.0+cu128
- Datasets 4.0.0
- Tokenizers 0.22.2
- Downloads last month
- 2
Model tree for mljn/roberta-economy-classifier
Base model
FacebookAI/xlm-roberta-base