takala/financial_phrasebank
Updated • 8.7k • 257
How to use Saiteja/phrasebank-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Saiteja/phrasebank-sentiment-analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Saiteja/phrasebank-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("Saiteja/phrasebank-sentiment-analysis")This model is a fine-tuned version of bert-base-uncased on the financial_phrasebank 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 | F1 | Accuracy |
|---|---|---|---|---|---|
| 0.6382 | 0.94 | 100 | 0.4063 | 0.8250 | 0.8425 |
| 0.2855 | 1.89 | 200 | 0.4179 | 0.8327 | 0.8521 |
| 0.1481 | 2.83 | 300 | 0.4624 | 0.8508 | 0.8549 |
| 0.0698 | 3.77 | 400 | 0.5220 | 0.8507 | 0.8590 |
Base model
google-bert/bert-base-uncased