Views
No views yet
ProsusAI/finbert) that classifies a stock-market /
financial news headline or sentence as bullish / neutral / bearish
(mapped to BUY / HOLD / SELL signals in the demo app).bearish (0), neutral (1), bullish (2)POST /predict + Gradio UITrainer on a Kaggle GPU:| Hyperparameter | Value |
|---|---|
| Epochs | 3 |
| Batch size | 16 |
| Learning rate | 2e-5 (AdamW) |
| Max sequence length | 128 |
| Metric | Value |
|---|---|
| Accuracy | 0.825 |
| Macro F1 | 0.811 |
| Class | Precision | Recall | F1 |
|---|---|---|---|
| bearish | 0.81 | 0.78 | 0.80 |
| neutral | 0.92 | 0.80 | 0.85 |
| bullish | 0.70 | 0.90 | 0.78 |
1from transformers import pipeline
2pipe = pipeline("text-classification", model="shubhampm/stock-news-sentiment-finetuned")
3pipe("Company X beats earnings estimates, shares surge 8%")
4# bullish (BUY) — confidence ≈ 0.93
5pipe("Regulator opens probe into accounting practices at the company")
6# bearish (SELL)