zeroshot/twitter-financial-news-sentiment
Viewer • Updated • 11.9k • 3.67k • 179
How to use kekunh/financial-twhin-bert-large-3labels-pesudo-bb-only with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="kekunh/financial-twhin-bert-large-3labels-pesudo-bb-only") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("kekunh/financial-twhin-bert-large-3labels-pesudo-bb-only")
model = AutoModelForSequenceClassification.from_pretrained("kekunh/financial-twhin-bert-large-3labels-pesudo-bb-only", device_map="auto")This model is a fine-tuned version of Twitter/twhin-bert-large on finance-related tweets. 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 | F1 |
|---|---|---|---|---|---|
| 0.5859 | 1.0 | 2283 | 1.5711 | 0.2039 | 0.0800 |
| 0.1601 | 2.0 | 4566 | 0.4379 | 0.8847 | 0.8857 |
| 0.0875 | 3.0 | 6849 | 0.5111 | 0.8854 | 0.8868 |
Base model
Twitter/twhin-bert-large