项目
在 GitHub 查看
zshicode/Attention-CLX-stock-prediction
关于
结合基于注意力机制的 CNN-LSTM 与 XGBoost 的股票预测混合模型
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Attention-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},
}
探索相关项目
加载中…