Text Classification
Transformers
Safetensors
xlm-roberta
Generated from Trainer
text-embeddings-inference
Instructions to use HaiderOye/bert_sentiment_analysis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HaiderOye/bert_sentiment_analysis with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="HaiderOye/bert_sentiment_analysis")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("HaiderOye/bert_sentiment_analysis") model = AutoModelForSequenceClassification.from_pretrained("HaiderOye/bert_sentiment_analysis") - Notebooks
- Google Colab
- Kaggle
bert_sentiment_analysis
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: 1.0592
- Accuracy: 0.4444
- F1 Weighted: 0.3556
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: 32
- 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: 8
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Weighted |
|---|---|---|---|---|---|
| No log | 1.0 | 5 | 1.1094 | 0.3889 | 0.2178 |
| 1.1224 | 2.0 | 10 | 1.1081 | 0.3889 | 0.2178 |
| 1.1224 | 3.0 | 15 | 1.1047 | 0.3889 | 0.2178 |
| 1.1203 | 4.0 | 20 | 1.0995 | 0.3889 | 0.2178 |
| 1.1203 | 5.0 | 25 | 1.0946 | 0.3889 | 0.2178 |
| 1.0728 | 6.0 | 30 | 1.0534 | 0.5 | 0.4131 |
| 1.0728 | 7.0 | 35 | 1.0640 | 0.4444 | 0.3556 |
| 1.0786 | 8.0 | 40 | 1.0592 | 0.4444 | 0.3556 |
Framework versions
- Transformers 5.10.2
- Pytorch 2.12.0+cu130
- Datasets 5.0.0
- Tokenizers 0.22.2
- Downloads last month
- 284
Model tree for HaiderOye/bert_sentiment_analysis
Base model
FacebookAI/xlm-roberta-base