Welcome to the Stock Market Prediction using LSTM project! This repository contains the code and resources for predicting stock market trends using Long Short-Term Memory (LSTM) neural networks. With the power of deep learning, we aim to forecast stock prices and make informed investment decisions.
In this project, we leverage historical stock market data to train an LSTM model. The model learns from past price patterns and trends, enabling it to predict future stock prices. The LSTM network is specifically designed to capture long-term dependencies and has proven to be effective in time series forecasting tasks.
We use a publicly available dataset containing historical stock prices of various companies. The dataset includes features like opening price, closing price, volume, etc. We preprocess the data, splitting it into training and testing sets, and perform any necessary data transformations.🫡
The LSTM model is built using deep learning frameworks like TensorFlow or PyTorch. We train the model on the training dataset, adjusting hyperparameters such as the number of hidden layers, the number of neurons per layer, and the learning rate. We employ techniques like regularization and dropout to prevent overfitting.
Once the model is trained, we evaluate its performance on the testing dataset. We compute various metrics such as mean squared error (MSE), root mean squared error (RMSE), and mean absolute error (MAE) to assess the model's accuracy. We visualize the predicted stock prices alongside the actual prices to gain insights into the model's performance.
To run the project locally, follow these steps:
- Clone this repository:
git clone https://github.com/034adarsh/Stock-Price-Prediction-Using-LSTM
- Install the necessary dependencies:
pip install -r requirements.txt
- Download the dataset from [link] and place it in the
data
directory. - Run the
train.py
script to train the LSTM model. - Run the
predict.py
script to make predictions on new data.
In this section, we present the results of our stock market prediction experiments. We discuss the model's performance, its strengths, limitations, and potential areas of improvement. We also provide visualizations of the predicted stock prices and compare them with the actual prices.
![Screenshot 2023-05-10 at 4 33 59 AM](https://private-user-images.githubusercontent.com/95336274/237241861-2590dc7b-29bb-45ae-b0a2-1bf869db0125.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0NDQ4NTcsIm5iZiI6MTcyNDQ0NDU1NywicGF0aCI6Ii85NTMzNjI3NC8yMzcyNDE4NjEtMjU5MGRjN2ItMjliYi00NWFlLWIwYTItMWJmODY5ZGIwMTI1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIzVDIwMjIzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM1YjM1ZTViNTVlZDVlMDRmYjczMWM2ODAxYmY0M2RlMjFmOTg3OWMzODhkNzI5YjdlMjY5ZDY2ZTQ1YjRiOWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.IJXHPQde5ZAkBj0Bc37qQScndKpJvIz4VmTRIhHR6YM)
We welcome contributions to enhance the project and make it even more effective. If you have any suggestions, bug fixes, or new features to add, please submit a pull request. We appreciate your contributions!
This project is licensed under the MIT License.
For any questions or inquiries, feel free to reach out to us:
- Email: as1402@srmist.edu.in
- LinkedIn: Adarsh Kumar Singh
Let's make accurate stock market predictions together!
Thank you for visiting our project repository. Happy predicting! 😇