stanfordnlp/sentiment140
Updated • 1.71k • 29
How to use ysenarath/roberta-base-sentiment140 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="ysenarath/roberta-base-sentiment140") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("ysenarath/roberta-base-sentiment140")
model = AutoModelForSequenceClassification.from_pretrained("ysenarath/roberta-base-sentiment140")This model is a fine-tuned version of FacebookAI/roberta-base on the sentiment140 dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Roc Auc | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|---|
| 0.2864 | 1.0 | 49969 | 0.3030 | 0.777 | 0.9470 | 0.6921 | 0.9732 | 0.8089 |
| 0.255 | 2.0 | 99938 | 0.2872 | 0.885 | 0.9553 | 0.8585 | 0.9134 | 0.8851 |
| 0.239 | 3.0 | 149907 | 0.2921 | 0.881 | 0.9543 | 0.8690 | 0.8887 | 0.8787 |
| 0.2042 | 4.0 | 199876 | 0.3028 | 0.891 | 0.9549 | 0.8821 | 0.8948 | 0.8884 |
| 0.187 | 5.0 | 249845 | 0.3192 | 0.89 | 0.9536 | 0.8788 | 0.8969 | 0.8878 |
| 0.1606 | 6.0 | 299814 | 0.3670 | 0.885 | 0.9514 | 0.8715 | 0.8948 | 0.8830 |
| 0.1343 | 7.0 | 349783 | 0.3988 | 0.883 | 0.9515 | 0.8802 | 0.8784 | 0.8793 |
Base model
FacebookAI/roberta-base