Giter VIP home page Giter VIP logo

a-fi's Introduction

a-fi

Features

  • ๐Ÿ“ˆ Automatic, up to date data collection using yfinance
  • โš–๏ธ Rolling Normalization to account for long term growth
  • ๐Ÿค” Wide LSTM Model that trains quickly, while still maintaining accuracy
  • ๐Ÿ› ๏ธ Hyperparameter infrastructure to make fine-tuning simple, easy, and intuitive
  • ๐Ÿ“ฒ Availability on Pytorch's TorchHub For easy use by others
  • โณ Variable "Sequence Seperation" for short- and long-term prediction

Prelimiary Results

image This image shows the validation dataset, with targets in blue and predictions in orange. Note the normalized scale on the y-axis.

More than 75% of datapoints in the validation set were within 0.25 of the target. This figure is slightly mysterious, but the average standard deviation used for normalization was around 30. This suggests that the model can predict within around $7 accurately.

Future Work

  • Exploring deeper, more complex Neural Networks for Increased Accuracy
  • Using Sequence Seperation for more conservative investment approaches
  • Exploring different investment strategies using the current data
  • Export models for multiple different ticker symbols

Using the Model

To use a pretrained version of this model, use the code below. Currently, this model will only accurately predict NFLX, but support for more ticker symbols is coming soon! Read on to see how to run the code locally and use models pretrained on other ticker symbols or train your own model.

model = torch.hub.load(
    "baroodya/a-fi,
    "ShallowRegressionLSTM",
    force_reload=True,
)

Using the Code

If you want to predict a different ticker symbol, or want to tune hyper parameters, you will have to download and run the code locally. After downloading, make sure you have the required packages:

Using pip: python3 -m pip -r requirements.txt

Using the Price Prediction Model

From the main directory: python3 main.py

To get started with hyper parameters, explore the default settings in parser.py and run python3 main.py -h.

a-fi's People

Contributors

baroodya avatar

Stargazers

16-bit cat avatar

Watchers

Kostas Georgiou avatar  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.