Giter VIP home page Giter VIP logo

hyperbolic-tlstm-sigir's Introduction

Hyperbolic Online Time Stream Modeling

This repository contains the code for Hyperbolic Online Time Stream Modeling accepted at SIGIR 2021 and implements the hyperbolic time aware LSTM as well as extends it to a hierarchical hyperbolic RNN model.

Dependencies:

  1. PyTorch
  2. geoopt==0.1.2

Please follow the FAST repository to obtain the data. This code expects data in a pickle format, with separate files for training and testing (dummy data to be uploaded soon!).

To train a model for stock movement prediction or profitability, from "code/", run:

python -W ignore train.py --task movement --data stock(or china) --lr 5e-4 --num_epochs 500 --decay 1e-5 --batch_size 128 --name exp_name

To train a model for stock volatility prediction or profitability, from "code/", run:

python -W ignore train.py --task volatility --data stock(or china) --lr 5e-4 --num_epochs 500 --decay 1e-5 --batch_size 128 --name exp_name

To calculate the profitability, from "code/", run:

python stock_trade.py --model_path /path/to/model.pth --data stock(or china)

Acknolwedgements:

  1. Hyrnn code: https://github.com/ferrine/hyrnn
  2. Manifolds and RAdam optimizer: https://github.com/HazyResearch/hgcn

If you use our models, consider citing:

@inproceedings{10.1145/3404835.3463119,
author = {Sawhney, Ramit and Agarwal, Shivam and Thakkar, Megh and Wadhwa, Arnav and Shah, Rajiv Ratn},
title = {Hyperbolic Online Time Stream Modeling},
year = {2021},
isbn = {9781450380379},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3404835.3463119},
doi = {10.1145/3404835.3463119},
booktitle = {Proceedings of the 44th International ACM SIGIR Conference on Research and Development in Information Retrieval},
pages = {1682โ€“1686},
numpages = {5},
keywords = {finance, language processing, hyperbolic geometry, stock market},
location = {Virtual Event, Canada},
series = {SIGIR '21}
}

hyperbolic-tlstm-sigir's People

Contributors

megh-thakkar 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.