Coder Social home page Coder Social logo

indexgan's Introduction

IndexGAN

Implementation of Stock Broad-Index Trend Patterns Learning via Domain Knowledge Informed Generative Network

Train the model

Step 1: Install the packages

  • python 3.9.6
  • pandas 1.3.1
  • numpy 1.21.1
  • nltk 3.6.2
  • ta 0.7.0
  • scikit-learn 0.24.2
  • keras-Preprocessing 1.1.2
  • torch 1.9.0
  • tqdm 4.62.0
  • matplotlib 3.4.2

Step 2: Preparation

  1. Download pre-trained word vectors from GloVe. Make a directory of ./data/glove/ and save glove.6B.50d.txt.
  2. Create a directory ./outputs to save the training log and trained model

Step 3: Run the model

The models with best performance: ./saved_model/data/final_model.pth

Corresponding parameters: ./saved_model_data/args.txt

DJI

python ./code/train.py \ 
    --data dji \
    --num_epochs 100 \
    --enc_size 100 \
    --dec_size 200 \
    --w2v_size 6 \
    --freq 5

SPX

python ./code/train.py \
    --data spx \
    --num_epochs 80 \
    --enc_size 100 \
    --dec_size 50 \
    --w2v_size 3 \
    --freq 7

Citation

If you use this code for your research, please kindly cite our paper:

@article{gu2023stock,
  title={Stock Broad-Index Trend Patterns Learning via Domain Knowledge Informed Generative Network},
  author={Gu, Jingyi and Deek, Fadi P and Wang, Guiling},
  journal={arXiv preprint arXiv:2302.14164},
  year={2023}
}

indexgan's People

Contributors

jingyigu avatar

Stargazers

 avatar  avatar  avatar He ShiLong avatar  avatar fred monroe avatar codeghost avatar lee avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

indexgan's Issues

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.