fancyzhx/amazon_polarity
Viewer • Updated • 4M • 16.3k • 48
How to use Prezily/bert_sentiment_2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Prezily/bert_sentiment_2") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Prezily/bert_sentiment_2")
model = AutoModelForSequenceClassification.from_pretrained("Prezily/bert_sentiment_2")This model is a fine-tuned version of Prezily/my_awesome_model on the amazon_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 |
|---|---|---|---|---|
| No log | 1.0 | 375 | 0.3221 | 0.901 |
| 0.3163 | 2.0 | 750 | 0.3553 | 0.914 |
| 0.0945 | 3.0 | 1125 | 0.4320 | 0.9183 |
Base model
Prezily/my_awesome_model