/ai-fin

Primary LanguagePython

ai-fin

A repo for our COMP 598 project exploring applications of deep learning to finance. Our main contributions are

  • Making use of ensemble models
    • 2 voting methods
    • average
    • bin-average (explained in report)
  • Consider a novel technical indicator
  • Explore pre-training models on other financial data

Results data as well as trained models are available at the following Google drive directory: Drive

About 'finrl'

The 'finrl' folder is a modified version of the FinRL-Library by Liu, Xiao-Yang and Yang, Hongyang and Chen, Qian and Zhang, Runjia and Yang, Liuqing and Xiao, Bowen and Wang, Christina Dan. The work contained therein is (with the exception of slight modifications, bug fixes) not our original work.

General Code Layout

Utils

Folder for general utility functions for the purpose of cleaning up other code.

  • Ensemble model
  • Data utility functions
  • enviroment (from 'finrl' adapted to our needs)
  • preprocessing functions for data

Scripts

Training and testing scripts

  • Designed to be run on a remote GPU
  • Includes some basic bash scripts to train each model in one command
  • Testing scripts require more manual adjustments
    • Due to more variability in parameters
  • Can specify
    • training dates
    • model to train
    • data to train on
    • number of steps to train for
    • where data and models are kept (for logging)

Extra Resources

Below one may find extra data and resources that are generally helpful in appling machine learning to finance.

Data

Traditional

Crypto

Papers

Textbooks

Code