Downloads · 30 days
5
8% of all-time downloads
jeroenvdmbrugge/sp500-predictor-individual-headlines
sp500-predictor-individual-headlines is a machine learning model from jeroenvdmbrugge. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/
Downloads · 30 days
5
8% of all-time downloads
All-time downloads
62
Public
Parameters
82.1M
1.3 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors328 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of distilbert/distilroberta-base, trained on a financial news headlines dataset from Kaggle. The headlines were assigned a classification based on the movement of the S&P 500 index on the next trading day following the publication of each headline. This movement classification was determined using S&P 500 closing prices obtained separately from Yahoo Finance and is defined as follows:
It achieves the following results on the evaluation set:
This model is based on the distilroberta-base architecture, a distilled version of RoBERTa-base. DistilRoBERTa retains 97% of the language understanding capabilities of RoBERTa-base while being twice as fast. It has 6 layers, 768 dimensions, and 12 attention heads, totaling 82 million parameters (compared to 125 million for RoBERTa-base). The model is case-sensitive and distinguishes between different cases in text.
The goal of this model is to predict the movement of the S&P 500 index based on financial news headlines. However, this initial version is not intended for production use. While it may provide insights into the potential impact of news on market movements, fine-tuning on more specific and extensive datasets will be necessary to improve its accuracy and reliability.
The training data consists of financial news headlines sourced from Kaggle. The headlines were classified based on the movement of the S&P 500 index on the following trading day, with closing prices gathered separately from Yahoo Finance. Movements were classified into three categories: increase, decrease, or maintain, based on the criteria mentioned above.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 1.0512 | 0.7496 | 1000 | 1.0513 | 0.4648 |
| 1.0374 | 1.4993 | 2000 | 1.0502 | 0.4724 |
| 1.0298 | 2.2489 | 3000 | 1.0481 | 0.4720 |
| 1.0185 | 2.9985 | 4000 | 1.0498 | 0.4765 |