Giter Site home page Giter Site logo

cgm's Introduction

CGM

This is the code of our IJCAI-21 paper: Long-term, Short-term and Sudden Event: Trading Volume Movement Prediction with Graph-based Multi-view Modeling. The architecture of our CGM. The original news data is shared at https://pan.baidu.com/s/1zTHKy54DOu0p9_fa4s-JVg The extraction code is:elj8.

Structure of the source code

src_classification/regression 
    -graph 
        -correlation.py 
        -file.py 
        -file_overnight.py (processing data)
        -utils.py 
    -models 
        -attention.py 
        -glstm.py 
        -cgm.py (our model)
        -slstm.py 
        -transformer.py 
    -criterion.py 
    -Data.py 
    -dcca.py
    -file.py 
    -lr_scheduler.py 
    -optims.py 
    -train.py (main process)
    -utils.py 

Shell scripts for training CGM

for volume movement classification task

CUDA_VISIBLE_DEVICES=0 python3 src_classification/train.py -config config_classification.yaml -verbose -log graph_dcca_classification

for volume movement regression task

CUDA_VISIBLE_DEVICES=0 python3 src_regression/train.py -config config_regression.yaml -verbose -log graph_dcca_regression

Citation

If you use the above code for your research, please cite our paper:

@inproceedings{zhao2021longterm,
  title={Long-term, Short-term and Sudden Event: Trading Volume Movement Prediction with Graph-based Multi-view Modeling},
  author={Liang Zhao, Wei Li, Ruihan Bao, Keiko Harimoto, Yunfang Wu and Xu Sun},
  booktitle={Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, {IJCAI} 2021, Montreal, Canada, August 21-26, 2021},
  year={2021}}

cgm's People

Contributors

zhao1iang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cgm's Issues

Historical stock data missing

Dear authors,

Thanks for your great work!

I am trying to run this model, but I find that there is a lack of historical stock data. And the folder 'data' mentioned in 'config_classification.yaml' is missing. Could you please provide the relevant data and files?

Thank you!

question regarding missing data in prediction phase

Hi!

Appreciate for sharing such greate work!

My concern regarding to the pratical usability of this whole pipeline is: if you select a stock universe i.e., stocks in the CSI300 index, or just simply select n stocks (doesn't really matter), to train the model, then how is the model gonna functioning well (do the right prediction) if some stocks quit the market, or stopped trading for a short period? From my understanding the vertices and edges cannot be missing, or nan?

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.