Projects
View on GitHub
zshicode/Attention-CLX-stock-prediction
About
Hybrid stock prediction model combining an attention-based CNN-LSTM with XGBoost
AI & Machine LearningMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalAttention-based CNN-LSTM and XGBoost hybrid model for stock prediction
Requirements
The code has been tested running under Python 3.7.4, with the following packages and their dependencies installed:
numpy==1.16.5
sklearn==0.21.3
statsmodels==0.10.1
pandas==0.25.1
tensorflow==2.1.0
keras==2.3.1
xgboost==1.5.0
The stock data used in this repository was downloaded from TuShare. The stock data on TuShare are with public availability.
Usage
Firstly, run ARIMA.py for pre-processing step by ARIMA model. Then, run the neural network or XGBoost models.
- Run
LSTM.pyfor the single-layer LSTM, multi-layer LSTM, and bidirectional LSTM models. - Run
XGBoost.pyfor the XGBoost model. - Run
Main.pyfor our proposed Attention-based CNN-LSTM and XGBoost hybrid model.
Citation
@article{shi2022attclx,
author={Zhuangwei Shi and Yang Hu and Guangliang Mo and Jian Wu},
title={Attention-based CNN-LSTM and XGBoost hybrid model for stock prediction},
journal={arXiv preprint arXiv:2204.02623},
year={2022},
}
Explore related projects
Loading…