Coder Social home page Coder Social logo

prashver / stock-price-prediction-lstm Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 121 KB

Using Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM), this project predicts Nestle India stock prices. The dataset spans from May 18, 2018 to May 20, 2022, and results are visualized using matplotlib.

Jupyter Notebook 100.00%
keras lstm-model matplotlib numpy pandas recurrent-neural-network

stock-price-prediction-lstm's Introduction

Stock Price Prediction of Nestle India Using Recurrent Neural Network

Using Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) to predict the stock prices of Nestle India.

Dataset

The dataset is taken from NSE India's website in CSV format. The dataset consists of Open, High, Low and Closing Prices of Nestle India stocks from 18th May, 2018 to 20th May, 2022 - total 1486 rows.

Architecture

The architecture of the RNN is 4 sets of LSTM (Long Short Term Memory) layers and Dropout regularization layers with the LSTM and Dropout layers sandwitched between each other. The number of time steps chosen for the RNN is 60. The model is trained on 100 epochs with a batch size of 32. The optimizer used is adam and the loss function is mean squared error.

Results

After successful prediction, the results were visualized using the matplotlib library.

stock-price-prediction-lstm's People

Contributors

prashver avatar

Stargazers

 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.