Giter Site home page Giter Site logo

lstm-rnn-predictions's Introduction

LSTM Recurrent Neural Network Price Predictor

Summary

With the goal of predicting price movement of Bitcoin, two LSTM RNN models will be fit to two separate metrics: the closing price history of Bitcoin, and daily values of the Crypto Fear & Greed Index. This analysis evalutes the predictive performance of the same LSTM RNN model using these two separate data as inputs.

Usage

Environment

Requires an Anaconda virtual environment running Python >= 3.8.

Activate your Anaconda virtual environment.

conda activate <env>

Dependencies

These installations are required to run the analysis. Newer package versions can be used, but be aware that library updates may cause code errors in the notebook.

pip install numpy==1.20.3
pip install pandas==1.3.4
pip install plotly==5.8.0
pip install scikit-learn==0.24.2
pip install tensorflow==2.9.1

Run

Run the program using your Jupyter Notebook editor of choice.

Analysis Q&A

Which model has a lower loss?

The FNG model returned a loss of 0.1258 while the Closing Price model had a loss of only 0.0068. The Closing Price model's loss function is roughly 19 times smaller than the FNG's.

Which model tracks the actual values better over time?

As made evident by the line charts, the Closing Price model tracks real values better over time.

Which window size works best for the model?

A window of 1 works best for the model as it reduces the loss function and increases the speed of fitting. The tradeoff is that it's only ever predicting one day into the future. If a longer term prediction window were used, the predictions would most likely be less accurate.

lstm-rnn-predictions's People

Contributors

adamgulyas avatar

Stargazers

 avatar Simon Leung avatar  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.