fancyzhx/yelp_polarity
Viewer • Updated • 598k • 16.6k • 22
How to use Siki-77/roberta_large_yelp2class with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Siki-77/roberta_large_yelp2class") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Siki-77/roberta_large_yelp2class")
model = AutoModelForSequenceClassification.from_pretrained("Siki-77/roberta_large_yelp2class")This model is a fine-tuned version of FacebookAI/roberta-large on the yelp_polarity 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 |
|---|---|---|---|---|
| 0.0975 | 1.0 | 35000 | 0.1078 | 0.9779 |
| 0.0614 | 2.0 | 70000 | 0.0859 | 0.9810 |
Base model
FacebookAI/roberta-large