Text Classification
Transformers
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use Relacosm/mca-sentiment-analyzer-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Relacosm/mca-sentiment-analyzer-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Relacosm/mca-sentiment-analyzer-v2", device_map="auto")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Relacosm/mca-sentiment-analyzer-v2") model = AutoModelForSequenceClassification.from_pretrained("Relacosm/mca-sentiment-analyzer-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Anti-overfitting 5-class sentiment model
Browse files
README.md
CHANGED
|
@@ -18,10 +18,10 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 18 |
|
| 19 |
This model is a fine-tuned version of [cardiffnlp/twitter-roberta-base-sentiment-latest](https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest) on the None dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
-
- Loss: 0.
|
| 22 |
-
- Accuracy: 0.
|
| 23 |
-
- F1 Macro: 0.
|
| 24 |
-
- F1 Weighted: 0.
|
| 25 |
|
| 26 |
## Model description
|
| 27 |
|
|
@@ -54,14 +54,14 @@ The following hyperparameters were used during training:
|
|
| 54 |
|
| 55 |
### Training results
|
| 56 |
|
| 57 |
-
| Training Loss | Epoch
|
| 58 |
-
|:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|:-----------:|
|
| 59 |
-
| 1.
|
| 60 |
-
| 0.
|
| 61 |
-
| 0.
|
| 62 |
-
| 0.
|
| 63 |
-
| 0.
|
| 64 |
-
| 0.
|
| 65 |
|
| 66 |
|
| 67 |
### Framework versions
|
|
|
|
| 18 |
|
| 19 |
This model is a fine-tuned version of [cardiffnlp/twitter-roberta-base-sentiment-latest](https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest) on the None dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.1090
|
| 22 |
+
- Accuracy: 0.9668
|
| 23 |
+
- F1 Macro: 0.9673
|
| 24 |
+
- F1 Weighted: 0.9669
|
| 25 |
|
| 26 |
## Model description
|
| 27 |
|
|
|
|
| 54 |
|
| 55 |
### Training results
|
| 56 |
|
| 57 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro | F1 Weighted |
|
| 58 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|:--------:|:-----------:|
|
| 59 |
+
| 1.2893 | 0.1559 | 20 | 0.9350 | 0.6074 | 0.4810 | 0.4802 |
|
| 60 |
+
| 0.8368 | 0.3119 | 40 | 0.5051 | 0.8848 | 0.8833 | 0.8831 |
|
| 61 |
+
| 0.6255 | 0.4678 | 60 | 0.2471 | 0.9336 | 0.9341 | 0.9336 |
|
| 62 |
+
| 0.469 | 0.6238 | 80 | 0.1967 | 0.9297 | 0.9299 | 0.9295 |
|
| 63 |
+
| 0.3423 | 0.7797 | 100 | 0.1227 | 0.9551 | 0.9558 | 0.9553 |
|
| 64 |
+
| 0.3477 | 0.9357 | 120 | 0.1090 | 0.9668 | 0.9673 | 0.9669 |
|
| 65 |
|
| 66 |
|
| 67 |
### Framework versions
|