This repository contains code for a stock market predictor utilizing Long Short-Term Memory (LSTM) neural networks. The predictor utilizes historical stock data to forecast future prices. Below are the components of this repository:
-
Jupyter Notebook - Stock_Predictor_LSTM.ipynb: This notebook contains the code to train the LSTM model using historical stock data. It includes data preprocessing, model training, and evaluation. The trained model is saved for future use.
-
app.py: This Python script creates a Streamlit web application for the stock market predictor. It allows users to input a stock symbol and date range, visualize stock data, and adjust moving average parameters for analysis.
-
requirements.txt: This file lists all Python dependencies required to run the code.
README.md: This Markdown file provides instructions on how to use the repository, including installation steps and usage guidelines.
To use the stock market predictor:
- Clone this repository to your local machine.
git clone https://github.com/Tejaspatil06/Stock_Predicting_Model_Using_LSTM.git- Install the required Python dependencies.
pip install -r requirements.txt- Run the Streamlit web application.
streamlit run app.py4.Enter a stock symbol and date range in the sidebar to visualize stock data and adjust moving average parameters for analysis.
- Data Source: The stock data is obtained using the Yahoo Finance API (yfinance).
- Model: The predictor employs a stacked LSTM architecture for time-series forecasting.
- Visualization: Matplotlib is used for data visualization within the Streamlit application.
- Customization: Feel free to customize the code according to your requirements or extend the functionality as needed.
- Streamlit for creating an intuitive web application framework.
- Matplotlib for data visualization capabilities.
- yfinance for providing access to Yahoo Finance data.
- Keras for building and training the LSTM model.