raeidsaqur commited on
Commit
1ef8e82
โ€ข
1 Parent(s): 4278065

Upload 4 files

Browse files
Files changed (4) hide show
  1. README.md +133 -0
  2. datasetcard.md +71 -0
  3. test.jsonl +0 -0
  4. valid.jsonl +0 -0
README.md CHANGED
@@ -1,3 +1,136 @@
1
  ---
2
  license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ tags:
4
+ - nifty
5
+ - stock-movement
6
+ - news-and-events
7
+ - RLMF
8
+ task_categories:
9
+ - multiple-choice
10
+ - time-series-forecasting
11
+ - document-question-answering
12
+ task_ids:
13
+ - topic-classification
14
+ - semantic-similarity-classification
15
+ - multiple-choice-qa
16
+ - univariate-time-series-forecasting
17
+ - document-question-answering
18
+ language:
19
+ - en
20
+ pretty_name: nifty-rl
21
+ size_categories:
22
+ - 1K<n<100k
23
+ configs:
24
+ - config_name: nifty-rl
25
+ data_files:
26
+ - split: train
27
+ path: "train.jsonl"
28
+ - split: test
29
+ path: "test.jsonl"
30
+ - split: valid
31
+ path: "valid.jsonl"
32
+ default: true
33
+
34
  ---
35
+
36
+ <h1>
37
+ <img alt="RH" src="./nifty-icon.png" style="display:inline-block; vertical-align:middle; width:120px; height:120px; object-fit:contain" />
38
+ The News-Informed Financial Trend Yield (NIFTY) Dataset.
39
+ </h1>
40
+
41
+ The News-Informed Financial Trend Yield (NIFTY) Dataset.
42
+
43
+ ## ๐Ÿ“‹ Table of Contents
44
+
45
+ - [๐Ÿงฉ NIFTY Dataset](#nifty-dataset)
46
+ - [๐Ÿ“‹ Table of Contents](#table-of-contents)
47
+ - [๐Ÿ“– Usage](#usage)
48
+ - [Downloading the dataset](#downloading-the-dataset)
49
+ - [Dataset structure](#dataset-structure)
50
+ - [Large Language Models](#large-language-models)
51
+ - [โœ๏ธ Contributing](#contributing)
52
+ - [๐Ÿ“ Citing](#citing)
53
+ - [๐Ÿ™ Acknowledgements](#acknowledgements)
54
+
55
+ ## ๐Ÿ“– [Usage](#usage)
56
+
57
+ Downloading and using this dataset should be straight-forward following the Huggingface datasets framework.
58
+
59
+ ### [Downloading the dataset](#downloading-the-dataset)
60
+
61
+ The NIFTY dataset is available on huggingface [here](https://huggingface.co/datasets/raeidsaqur/NIFTY) and can be downloaded with the following python snipped:
62
+
63
+ ```python
64
+
65
+ from datasets import load_dataset
66
+
67
+ # If the dataset is gated/private, make sure you have run huggingface-cli login
68
+ dataset = load_dataset("raeidsaqur/nifty-rl")
69
+
70
+ ```
71
+
72
+ ### [Dataset structure](#dataset-structure)
73
+
74
+ 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.
75
+
76
+ ```python
77
+ ['prompt', 'chosen', 'rejected', 'chosen_label', 'chosen_value']
78
+ ```
79
+
80
+ Currently, the dataset has 2111 examples in total, the dates randing from 2010-01-06 to 2020-09-21.
81
+ <!-- The number of examples for each split is given below.
82
+ | Split | Num Examples | Date range |
83
+ |-------|--------------|------------|
84
+ |Train |1477 |2010-01-06 - 2017-06-27 |
85
+ |Valid|317 | 2017-06-28- 2019-02-12|
86
+ |Test |317|2019-02-13 - 2020-09-21|
87
+ -->
88
+ <!--
89
+ <img alt="St" src="./imgs/visualize_nifty_1794_2019-02-13.png"
90
+ style="display:inline-block; vertical-align:middle; width:640px;
91
+ height:640px; object-fit:contain" />
92
+
93
+ -->
94
+
95
+
96
+
97
+ ## โœ๏ธ [Contributing](#contributing)
98
+
99
+ We welcome contributions to this repository (noticed a typo? a bug?). To propose a change:
100
+
101
+ ```
102
+ git clone https://huggingface.co/datasets/raeidsaqur/nifty-rl
103
+ cd nifty-rl
104
+ git checkout -b my-branch
105
+ pip install -r requirements.txt
106
+ pip install -e .
107
+ ```
108
+
109
+ Once your changes are made, make sure to lint and format the code (addressing any warnings or errors):
110
+
111
+ ```
112
+ isort .
113
+ black .
114
+ flake8 .
115
+ ```
116
+
117
+ Then, submit your change as a pull request.
118
+
119
+ ## ๐Ÿ“ [Citing](#citing)
120
+
121
+ If you use the NIFTY Financial dataset in your work, please consider citing our paper:
122
+
123
+ ```
124
+ @article{raeidsaqur2024Nifty,
125
+ title = {NIFTY Financial News Headlines Dataset},
126
+ author = {Raeid Saqur},
127
+ year = 2024,
128
+ journal = {ArXiv},
129
+ url = {https://arxiv.org/abs/2024.5599314}
130
+ }
131
+ ```
132
+
133
+ ## ๐Ÿ™ [Acknowledgements](#acknowledgements)
134
+
135
+ The authors acknowledge and thank the generous computing provided by the Vector Institute, Toronto.
136
+
datasetcard.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: mit
5
+ license_name: MIT
6
+ license_link: {license_link}
7
+ license_details: {license_details}
8
+ tags:
9
+ - nifty
10
+ - stock-movement
11
+ - news-and-events
12
+ - RLMF
13
+ annotations_creators:
14
+ - {creator}
15
+ language_creators:
16
+ - {creator}
17
+ language_details:
18
+ - en-US
19
+ pretty_name: NIFTY
20
+ size_categories:
21
+ - 1K<n<100k
22
+ source_datasets:
23
+ - {source_dataset_0}
24
+ - {source_dataset_1}
25
+ task_categories:
26
+ - time-series-forecasting
27
+ task_ids:
28
+ - topic-classification
29
+ paperswithcode_id: {paperswithcode_id}
30
+ configs:
31
+ - {config_0}
32
+ - {config_1}
33
+
34
+ dataset_info:
35
+ features:
36
+ - name: prompt
37
+ dtype: string
38
+ - name: chosen
39
+ dtype: string
40
+ - name: rejected
41
+ dtype: string
42
+ - name: chosen_label
43
+ dtype: string
44
+ - name: chosen_value
45
+ dtype: string
46
+ configs:
47
+ - config_name: rl
48
+ data_files:
49
+ - split: train
50
+ path: "train.jsonl"
51
+ - split: test
52
+ path: "test.jsonl"
53
+ - split: valid
54
+ path: "valid.jsonl"
55
+ splits:
56
+ - name: train
57
+ num_bytes: {split_num_bytes_0}
58
+ num_examples: {split_num_examples_0}
59
+ - name: valid
60
+ num_bytes: {split_num_bytes_1}
61
+ num_examples: {split_num_examples_1}
62
+ - name: test
63
+ num_bytes: {split_num_bytes_2}
64
+ num_examples: {split_num_examples_2}
65
+ download_size: {dataset_download_size}
66
+ dataset_size: {dataset_size}
67
+ ---
68
+
69
+ Valid license identifiers can be found in [our docs](https://huggingface.co/docs/hub/repositories-licenses).
70
+
71
+ For the full dataset card template, see: [datasetcard_template.md file](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/datasetcard_template.md).
test.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
valid.jsonl ADDED
The diff for this file is too large to render. See raw diff