Dataset Viewer
Auto-converted to Parquet Duplicate
prompt
stringlengths
1.15k
21.6k
chosen
stringlengths
11
15
rejected
stringclasses
9 values
chosen_label
stringclasses
3 values
chosen_value
stringlengths
6
7
Project the $SPY index's movement by assessing market data and news headlines from 2010-01-06. Offer a reply as 'Rise', 'Fall', or 'Neutral', along with the predicted percentage change in a newline. Conclude with 'Neutral' if the envisaged modification is under 0.50%. Context:date,open,high,low,close,adj_close,volume,p...
Neutral 0.0042
It is difficult to provide an answer to this question.
Neutral
0.0042
Analyze market data and news headlines dated 2010-01-07 to forecast the direction of the $SPY index. Deliver a response as 'Fall', 'Neutral', or 'Rise', along with the anticipated percentage change in a newline. Conclude with 'Neutral' if the projected change is below 0.50%. Context:date,open,high,low,close,adj_close,...
Neutral 0.0033
Fall
Neutral
0.0033
Forecast the $SPY index's trajectory by scrutinizing market data and news headlines from 2010-01-11. Conclude with 'Neutral' if the expected adjustment is less than 0.50%. Furnish a response as 'Rise', 'Fall', or 'Neutral', including the forecasted percentage change in a newline. Context:date,open,high,low,close,adj_c...
Fall -0.0093
Rise
Fall
-0.0093
Forecast the $SPY index's trajectory by scrutinizing market data and news headlines from 2010-01-12. Conclude with 'Neutral' if the expected adjustment is less than 0.50%. Furnish a response as 'Rise', 'Fall', or 'Neutral', including the forecasted percentage change in a newline. Context:date,open,high,low,close,adj_c...
Rise 0.0084
I cannot determine the answer based on the given data.
Rise
0.0084
Forecast the $SPY index's trajectory by scrutinizing market data and news headlines from 2010-01-13. Furnish a response as 'Fall', 'Neutral', or 'Rise', including the forecasted percentage change in a newline. Conclude with 'Neutral' if the expected adjustment is less than 0.50%. Context:date,open,high,low,close,adj_c...
Neutral 0.0027
I cannot predict whether the closing price will grow or shrink
Neutral
0.0027
Anticipate the direction of the $SPY index by analyzing market data and news headlines from 2010-01-14. Deliver a response as 'Fall', 'Neutral', or 'Rise', along with the forecasted percentage change in a newline. End with 'Neutral' if the expected change is below 0.50%. Context:date,open,high,low,close,adj_close,volu...
Fall -0.0112
Rise
Fall
-0.0112
Predict the $SPY index's movement by examining market data and news headlines from 2010-01-19. Conclude with 'Neutral' if the anticipated adjustment is under 0.50%. Present a response as 'Neutral', 'Fall', or 'Rise', with the predicted percentage change in a newline. Context:date,open,high,low,close,adj_close,volume,p...
Fall -0.0102
Rise
Fall
-0.0102
To predict the $SPY index's direction, analyze market data and news headlines from 2010-01-20. If the expected alteration is less than 0.50%, end with 'Neutral'. Offer a reply as 'Rise', 'Neutral', or 'Fall', coupled with the forecasted percentage change in a newline. Context:date,open,high,low,close,adj_close,volume,...
Fall -0.0192
Rise
Fall
-0.0192
Assess market data and news headlines from 2010-01-21 to predict the $SPY index's direction. Offer a reply as 'Rise', 'Fall', or 'Neutral', along with the forecasted percentage change in a newline. Finalize with 'Neutral' if the expected shift is less than 0.50%. Context:date,open,high,low,close,adj_close,volume,pct_c...
Fall -0.0223
Unfortunately, I don't have enough information to answer that.
Fall
-0.0223
Anticipate the direction of the $SPY index by analyzing market data and news headlines from 2010-01-25. End with 'Neutral' if the expected change is below 0.50%. Supply a response as 'Rise', 'Neutral', or 'Fall', along with the forecasted percentage change in a newline. Context:date,open,high,low,close,adj_close,volum...
Neutral -0.0042
Fall
Neutral
-0.0042
Forecast the $SPY index's trajectory by scrutinizing market data and news headlines from 2010-01-26. Furnish a response as 'Fall', 'Neutral', or 'Rise', including the forecasted percentage change in a newline. Conclude with 'Neutral' if the expected adjustment is less than 0.50%. Context:date,open,high,low,close,adj_c...
Neutral 0.0048
It is difficult to provide an answer to this question.
Neutral
0.0048
Predict the $SPY index's movement by examining market data and news headlines from 2010-01-27. Supply a response as 'Neutral', 'Rise', or 'Fall', with the predicted percentage change in a newline. Conclude with 'Neutral' if the anticipated adjustment is under 0.50%. Context:date,open,high,low,close,adj_close,volume,pc...
Fall -0.0115
Rise
Fall
-0.0115
Forecast the $SPY index's trajectory by scrutinizing market data and news headlines from 2010-01-28. Conclude with 'Neutral' if the expected adjustment is less than 0.50%. Furnish a response as 'Rise', 'Fall', or 'Neutral', including the forecasted percentage change in a newline. Context:date,open,high,low,close,adj_c...
Fall -0.0109
Rise
Fall
-0.0109
Assess market data and news headlines from 2010-02-01 to predict the $SPY index's direction. Offer a reply as 'Rise', 'Fall', or 'Neutral', along with the forecasted percentage change in a newline. Finalize with 'Neutral' if the expected shift is less than 0.50%. Context:date,open,high,low,close,adj_close,volume,pct_c...
Rise 0.0121
Neutral
Rise
0.0121
Anticipate the direction of the $SPY index by analyzing market data and news headlines from 2010-02-02. End with 'Neutral' if the expected change is below 0.50%. Supply a response as 'Rise', 'Neutral', or 'Fall', along with the forecasted percentage change in a newline. Context:date,open,high,low,close,adj_close,volum...
Neutral -0.0050
Rise
Neutral
-0.0050
Forecast the $SPY index's movement by scrutinizing market data and news headlines from 2010-02-03. If the expected adjustment is below 0.50%, conclude with 'Neutral'. Deliver a response as 'Fall', 'Rise', or 'Neutral', alongside the predicted percentage change in a newline. Context:date,open,high,low,close,adj_close,v...
Fall -0.0309
it is difficult to forecast
Fall
-0.0309
Forecast the $SPY index's movement by scrutinizing market data and news headlines from 2010-02-04. If the expected adjustment is below 0.50%, conclude with 'Neutral'. Deliver a response as 'Fall', 'Rise', or 'Neutral', alongside the predicted percentage change in a newline. Context:date,open,high,low,close,adj_close,v...
Neutral 0.0021
Fall
Neutral
0.0021
Project the $SPY index's movement by assessing market data and news headlines from 2010-02-08. Offer a reply as 'Rise', 'Fall', or 'Neutral', along with the predicted percentage change in a newline. Conclude with 'Neutral' if the envisaged modification is under 0.50%. Context:date,open,high,low,close,adj_close,volume,p...
Rise 0.0126
Neutral
Rise
0.0126
Analyze market data and news headlines dated 2010-02-09 to forecast the direction of the $SPY index. Deliver a response as 'Fall', 'Neutral', or 'Rise', along with the anticipated percentage change in a newline. Conclude with 'Neutral' if the projected change is below 0.50%. Context:date,open,high,low,close,adj_close,...
Neutral -0.0020
Fall
Neutral
-0.0020
Analyze market data and news headlines dated 2010-02-10 to forecast the direction of the $SPY index. Conclude with 'Neutral' if the projected change is below 0.50%. Provide a response as 'Rise', 'Fall', or 'Neutral', along with the anticipated percentage change in a newline. Context:date,open,high,low,close,adj_close,...
Rise 0.0105
Neutral
Rise
0.0105
Project the $SPY index's trajectory by assessing market data and news headlines from 2010-02-11. If the envisaged modification is under 0.50%, end with 'Neutral'. Furnish a response as 'Neutral', 'Fall', or 'Rise', including the forecasted percentage change in a newline. Context:date,open,high,low,close,adj_close,volu...
Neutral -0.0008
it is difficult to forecast
Neutral
-0.0008
Project the $SPY index's trajectory by assessing market data and news headlines from 2010-02-16. If the envisaged modification is under 0.50%, end with 'Neutral'. Furnish a response as 'Neutral', 'Fall', or 'Rise', including the forecasted percentage change in a newline. Context:date,open,high,low,close,adj_close,volu...
Neutral 0.0047
Rise
Neutral
0.0047
Forecast the $SPY index's trajectory by scrutinizing market data and news headlines from 2010-02-17. Furnish a response as 'Fall', 'Neutral', or 'Rise', including the forecasted percentage change in a newline. Conclude with 'Neutral' if the expected adjustment is less than 0.50%. Context:date,open,high,low,close,adj_c...
Rise 0.0059
Neutral
Rise
0.0059
Assess market data and news headlines from 2010-02-18 to predict the $SPY index's direction. Offer a reply as 'Rise', 'Fall', or 'Neutral', along with the forecasted percentage change in a newline. Finalize with 'Neutral' if the expected shift is less than 0.50%. Context:date,open,high,low,close,adj_close,volume,pct_c...
Neutral 0.0021
it is difficult to forecast
Neutral
0.0021
To predict the $SPY index's direction, analyze market data and news headlines from 2010-02-22. If the expected alteration is less than 0.50%, end with 'Neutral'. Offer a reply as 'Rise', 'Neutral', or 'Fall', coupled with the forecasted percentage change in a newline. Context:date,open,high,low,close,adj_close,volume,...
Fall -0.0121
I cannot predict whether the closing price will grow or shrink
Fall
-0.0121
To predict the direction of the $SPY index, analyze market data and news headlines from 2010-02-23. End with 'Neutral' if the expected alteration is below 0.50%. Provide a reply as 'Fall', 'Neutral', or 'Rise', along with the anticipated percentage change in a newline. Context:date,open,high,low,close,adj_close,volume...
Rise 0.0092
Neutral
Rise
0.0092
Assess market data and news headlines from 2010-02-24 to predict the $SPY index's direction. Finalize with 'Neutral' if the expected shift is less than 0.50%. Offer a reply as 'Fall', 'Neutral', or 'Rise', along with the forecasted percentage change in a newline. Context:date,open,high,low,close,adj_close,volume,pct_c...
Neutral -0.0014
Rise
Neutral
-0.0014
Forecast the $SPY index's trajectory by scrutinizing market data and news headlines from 2010-02-25. Furnish a response as 'Fall', 'Neutral', or 'Rise', including the forecasted percentage change in a newline. Conclude with 'Neutral' if the expected adjustment is less than 0.50%. Context:date,open,high,low,close,adj_c...
Neutral 0.0006
It is difficult to provide an answer to this question.
Neutral
0.0006
Examine market data and news headlines dated 2010-03-01 to project the direction of the $SPY index. If the expected shift is below 0.50%, finalize with 'Neutral'. Present a response as 'Fall', 'Rise', or 'Neutral', along with the anticipated percentage change in a newline. Context:date,open,high,low,close,adj_close,vo...
Neutral 0.0028
Fall
Neutral
0.0028
Analyze market data and news headlines dated 2010-03-02 to forecast the direction of the $SPY index. Deliver a response as 'Fall', 'Neutral', or 'Rise', along with the anticipated percentage change in a newline. Conclude with 'Neutral' if the projected change is below 0.50%. Context:date,open,high,low,close,adj_close,...
Neutral 0.0009
Fall
Neutral
0.0009
Examine market data and news headlines dated 2010-03-03 to project the $SPY index's direction. Conclude with 'Neutral' if the envisaged shift is under 0.50%. Deliver a response as 'Neutral', 'Rise', or 'Fall', along with the predicted percentage change in a newline. Context:date,open,high,low,close,adj_close,volume,pc...
Neutral 0.0030
Fall
Neutral
0.0030
End of preview. Expand in Data Studio

RH The News-Informed Financial Trend Yield (NIFTY) Dataset.

The News-Informed Financial Trend Yield (NIFTY) Dataset. Details of the dataset, including data procurement and filtering can be found in the paper here: https://arxiv.org/abs/2405.09747.

📋 Table of Contents

📖 Usage

Downloading and using this dataset should be straight-forward following the Huggingface datasets framework.

Downloading the dataset

The NIFTY dataset is available on huggingface here and can be downloaded with the following python snipped:


from datasets import load_dataset

# If the dataset is gated/private, make sure you have run huggingface-cli login
dataset = load_dataset("raeidsaqur/nifty-rl")

Dataset structure

The dataset is split into 3 partition, train, valid and test and each partition is a jsonl file where a single row has the following keys.

['prompt', 'chosen', 'rejected', 'chosen_label', 'chosen_value']

Currently, the dataset has 2111 examples in total, the dates randing from 2010-01-06 to 2020-09-21.

✍️ Contributing

We welcome contributions to this repository (noticed a typo? a bug?). To propose a change:

git clone https://huggingface.co/datasets/raeidsaqur/nifty-rl
cd nifty-rl
git checkout -b my-branch
pip install -r requirements.txt
pip install -e .

Once your changes are made, make sure to lint and format the code (addressing any warnings or errors):

isort .
black .
flake8 .

Then, submit your change as a pull request.

📝 Citing

If you use the NIFTY Financial dataset in your work, please consider citing our paper:

@article{raeidsaqur2024NiftyRL,
    title        = {NIFTY-RL: Financial News Headlines Dataset for LLM Alignment using Reinforcement Learning.},
    author       = {Raeid Saqur},
    year         = 2024,
    journal      = {ArXiv},
    url          = {https://arxiv.org/abs/2024.5599314}
}

🙏 Acknowledgements

The authors acknowledge and thank the generous computing provided by the Vector Institute, Toronto.

Downloads last month
83

Paper for raeidsaqur/nifty-rl