Text Classification
Transformers
PyTorch
TensorBoard
bert
Generated from Trainer
text-embeddings-inference
Instructions to use Amdalotaibi/bert-base-arabic-camelbert-da-traffics-sentiment-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Amdalotaibi/bert-base-arabic-camelbert-da-traffics-sentiment-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Amdalotaibi/bert-base-arabic-camelbert-da-traffics-sentiment-2")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Amdalotaibi/bert-base-arabic-camelbert-da-traffics-sentiment-2") model = AutoModelForSequenceClassification.from_pretrained("Amdalotaibi/bert-base-arabic-camelbert-da-traffics-sentiment-2") - Notebooks
- Google Colab
- Kaggle
bert-base-arabic-camelbert-da-traffics-sentiment
This model is a fine-tuned version of CAMeL-Lab/bert-base-arabic-camelbert-da on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.1287
- Accuracy: 0.9960
- Precision: 0.9826
- Recall: 0.9832
- F1: 0.9829
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: 32
- eval_batch_size: 64
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.05
- num_epochs: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| No log | 1.0 | 326 | 0.1205 | 0.9766 | 0.9280 | 0.9675 | 0.9468 |
| 0.3279 | 2.0 | 652 | 0.1538 | 0.9887 | 0.9805 | 0.9717 | 0.9760 |
| 0.3279 | 3.0 | 978 | 0.1212 | 0.9954 | 0.9757 | 0.9829 | 0.9792 |
| 0.0468 | 4.0 | 1304 | 0.1399 | 0.9954 | 0.9812 | 0.9693 | 0.9751 |
| 0.0038 | 5.0 | 1630 | 0.1287 | 0.9960 | 0.9826 | 0.9832 | 0.9829 |
Framework versions
- Transformers 4.44.2
- Pytorch 2.1.1+cu121
- Datasets 2.21.0
- Tokenizers 0.19.1
- Downloads last month
- 4
Model tree for Amdalotaibi/bert-base-arabic-camelbert-da-traffics-sentiment-2
Base model
CAMeL-Lab/bert-base-arabic-camelbert-da