Coder Social home page Coder Social logo

vmieres / deeplearning Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.94 MB

This repo is about Deep Learning and Recurrent Neural Networks

Jupyter Notebook 100.00%
bitcoin cryptocurrency deep-learning deep-neural-networks neural-networks recurrent-neural-networks lstm rnn-tensorflow

deeplearning's Introduction

DeepLearning

Deep Learning

In this repo I am using deep learning recurrent neural networks to model bitcoin closing prices. One model will use the FNG indicators to predict the closing price while the second model will use a window of closing prices to predict the nth closing price.

Preparing the data for training and testing

  • For the closing price model, I used previous closing prices to try and predict the next closing price.
  • For the Fear and Greed model, I used the FNG values to try and predict the closing price.
  • For each model used 70% of the data for training and 30% of the data for testing.
  • Applied a MinMaxScaler to the X and Y values to scale the data for the model. Lastly, reshaped the X_train and X_test values to fit the model's requirement of samples, time steps, and features. (example: X_train = X_train.reshape((X_train.shape[0], X_train.shape[1], 1)))

Building and Training custom LSTM RNNs

In each Notebook, I created the same custom LSTM RNN architecture. In one notebook, I fitted the data using the FNG values. In the other notebook, I fitted the data using only closing prices.

Evaluating the performance of each model

Lastly, use the testing data to evaluate each model and compare the performance.

Use the above to answer the following:

  • Which model has a lower loss? - LSTM RNN Closing Prices
  • Which model tracks the actual values better over time? - LSTM RNN Closing Prices
  • Which window size works best for the model? - window size = 5

deeplearning's People

Contributors

vmieres avatar

Watchers

 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.