GithubHelp home page GithubHelp logo

webclinic017 / lstm_gru_cipla Goto Github PK

View Code? Open in Web Editor NEW

This project forked from saritmaitra/lstm_gru_cipla

0.0 0.0 0.0 2.88 MB

License: GNU General Public License v3.0

Jupyter Notebook 100.00% Python 0.01%

lstm_gru_cipla's Introduction

Technical Indicators and GRU/LSTM to Predict Stock price

TECHNICAL indicators are available at large numbers and used mostly by stock traders. Most indicators have user-defined variables which allow traders to adapt key inputs such as look-back period which us how much historical data will be used to form the calculations to suit their needs. We will use some of the indicators to create features in the existing data set. Applying these features, we will see if we can predict the future price of a particular stock. We will use Gated Recurrent Unit (GRU) and Long Short-Term Memory (LSTM) of recurrent units to compare their performance. LSTM is well established on sequence-based tasks with long-term dependencies, and GRU is a new addition in the field of machine learning which is an improvised version of Recurrent Neural Network(RNN). I found this article is quite interesting to know more about these two network architecture. There are some similarities and differences between GRU and LSTM.

Similarities

Both the network have additive component from t to t + 1; new content is added on the top of existing content. Both addresses vanishing and exploding gradient issue The update gate in GRU and forget gate in LSTM takes the linear sum between the existing state and the newly computed state

Differences

GRU has two gates, reset and update gates compared to LSTM has three gates, input, forget and output. GRU does not have an output gate like LSTM. Update gate in GRU does the work of input and forget gate of LSTM. GRU is computationally more efficient considering fewer parameters and need less data to generalize. LSTM maintains an internal memory state cell, while GRU does not have a separate memory cell GRU does not have any mechanism to control the degree to which its state or memory content is exposed, but exposes the whole state or memory content each time. LSTM can control how much memory content it wants to expose.

lstm_gru_cipla's People

Contributors

saritmaitra 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.