Code Monkey home page Code Monkey logo

adgat's Introduction

Modeling the Momentum Spillover Effect for Stock Prediction via Attribute-Driven Graph Attention Networks

Code & Data for the stock prediction model in our paper: Modeling the Momentum Spillover Effect for Stock Prediction via Attribute-Driven Graph Attention Networks.

Environment

Python 3.7.6 & Pytorch 1.5.1

Run

$ python main.py --device=0

Make sure that the GPU is used to reproduce our experiments.

Data

All the preprocessed data can be found at ./data.

Selected Stock

The selected 198 tickers can be found at ./raw_data/stocks.txt

Transcational Data

The raw transcational data is about 1.31Gb. Link and preprocess code will be released soon.

Sentiment Indicators

The news data are not provided in our repository due to copyright issues.

We use financial news from Reuters and Bloomberg over the period from 2011 to 2013, released by Ding et al. ("Using structured events to predict stock price movement: An empirical investigation." EMNLP. 2014.)

The Loughran-McDonald Master Dictionary (https://sraf.nd.edu/textual-analysis/resources/) is used to extract sentiment from financial articles.

Company Relations

Firm relations can be found at ./raw_data/relations/*. The Company Relations are collected from S&P Capical IQ (https://www.capitaliq.com/). The first row is the target stock tickers, and following rows are firms that has specific relation with that frim.

Contact

[email protected]

adgat's People

Contributors

ruichengfic avatar

Watchers

 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.