Giter Site home page Giter Site logo

dancingonmoon / attention-clx-stock-prediction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zshicode/attention-clx-stock-prediction

0.0 0.0 0.0 895 KB

Attention-based CNN-LSTM and XGBoost hybrid model for stock prediction

Python 100.00%

attention-clx-stock-prediction's Introduction

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.py for the single-layer LSTM, multi-layer LSTM, and bidirectional LSTM models.
  • Run XGBoost.py for the XGBoost model.
  • Run Main.py for 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},
}

attention-clx-stock-prediction's People

Contributors

zshicode avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.