Giter Club home page Giter Club logo

hackathon_starting_kit's Introduction

Starting kit for time-series generation hackathon

In this repository, we provide a standard pipeline to help you with the kick off of our hackathon. In this pipeline, we include:

  1. data importing and explanatory analysis,
  2. the model build-up for both the generator and discriminator using LSTM modules,
  3. training algorithm design,
  4. offline evaluation module.

The data used for training and testing all come from the public data from the main hackathon website,

Environment Setup

The code has been tested successfully using Python 3.8 and pytorch 1.11.0. A typical process for installing the package dependencies involves creating a new Python virtual environment.

To install the required packages, run the following:

conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=10.2 -c pytorch
pip install cupy-cuda102
pip install -r requirements.txt

For code illustration, please take a closer look on the Jupyter-Notebook we created, namely, example_pipeline.ipynb.

Data

For this challenge, the training data is located at data/ref_data.pkl. This data includes 20000 sample paths representing the price and volatility processes of 2 correlated assets. Each sample path is sampled uniformly from [0, 1] with 20 time steps. The dataset provides trajectories for both the price and volatility processes, resulting in a time series with feature dimensions such as [price_asset_1, volatility_asset_1, price_asset_2, volatility_asset_2], the data is stored in a .pkl file and the data shape is [20000, 20, 4].

Sample submission

We also provide a sample submission bundle at sample_submission_bundle which includes:

  1. model_dict.pkl: Dictionary of model parameters used to generate the samples.
  2. model.py: Script of your model architecture, model loading, and data generation.
  3. fake.pkl: Fake data generated by the trained model.

Finally, we wish you good luck during the competition and most importantly, have fun!!!

hackathon_starting_kit's People

Contributors

tjj0502 avatar code-cornelius 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.