This is the source code and some evaluation scripts for our paper PEN: Prediction-Explanation Network to Forecast Stock Price Movement with Better Explainability. Our code is based on https://github.com/yumoxu/stocknet-code
- Python 2.7.11
- Tensorflow 1.4.0
- Scipy 1.0.0
- NLTK 3.2.5
- src: source files;
- The core code of our model is in
MSINModule.py
- The core code of our model is in
- res: resource files including,
- data:
All details about hyper-parameters are listed in src/config.yml
and src/config_d.yml
.
See more information in 'Experimental Setup' of our paper.
Use sh src/run.sh
or python src/Main.py
in your terminal to start model training and testing.
The default code corresponds to ACL18.
For DJIA, simply replace Executor
to Executor_d
in src/Main.py
.