# Stock Price Prediction Web App This repository contains the code for predicting stock prices using machine learning techniques. The code is implemented in Python using various libraries such as Pandas, Scikit-learn, TensorFlow, etc. ## Dataset The dataset used for this project is obtained from Yahoo Finance API using the `yfinance` library. It includes daily stock prices of various companies, such as Apple, Amazon, Google, etc. The dataset is preprocessed and cleaned to remove any missing values or outliers. ## Models Several machine learning models are implemented in this project to predict stock prices. These include: - Linear Regression - Long Short-Term Memory (LSTM) Neural Network The models are trained on a subset of the data and tested on the remaining data to evaluate their performance. The best performing model is used to make future stock price predictions. # Home Pages ![Home Pages1](https://github.com/AyushPadvekar05/Stock-Price-Prediction-Web-App/blob/main/Screenshots/Screenshot%202023-04-16%20193135.png?raw=true "Optional Title") ![Home Pages2](https://github.com/AyushPadvekar05/Stock-Price-Prediction-Web-App/blob/main/Screenshots/Screenshot%202023-04-16%20193151.png?raw=true "Optional Title") # Prediction Pages *_Input Page_* ![Input Prediction Pages](https://github.com/AyushPadvekar05/Stock-Price-Prediction-Web-App/blob/main/Screenshots/Screenshot%202023-04-16%20193205.png?raw=true "Optional Title") *_Output Pages_* ![Output Prediction Pages 1](https://github.com/AyushPadvekar05/Stock-Price-Prediction-Web-App/blob/main/Screenshots/Screenshot%202023-04-16%20193237.png?raw=true "Optional Title") ![Output Prediction Pages 2](https://github.com/AyushPadvekar05/Stock-Price-Prediction-Web-App/blob/main/Screenshots/Screenshot%202023-04-16%20193251.png?raw=true "Optional Title") # Data Accuracy Pages The accuracy of the models is evaluated using various metrics such as mean absolute error (MAE), mean squared error (MSE), and root mean squared error (RMSE). The accuracy of each model is compared using these metrics to determine the best performing model. *_Input Page_* ![Input Data Accuracy Pages](https://github.com/AyushPadvekar05/Stock-Price-Prediction-Web-App/blob/main/Screenshots/Screenshot%202023-04-16%20195233.png?raw=true "Optional Title") *_Output Pages_* ![Output Data Accuracy Pages 1](https://github.com/AyushPadvekar05/Stock-Price-Prediction-Web-App/blob/main/Screenshots/Screenshot%202023-04-16%20193634.png?raw=true "Optional Title") ![Output Data Accuracy Pages 2](https://github.com/AyushPadvekar05/Stock-Price-Prediction-Web-App/blob/main/Screenshots/Screenshot%202023-04-16%20193654.png?raw=true "Optional Title") # Stock Comparison Pages *_Input Page_* ![Input Stock Comparison Pages](https://github.com/AyushPadvekar05/Stock-Price-Prediction-Web-App/blob/main/Screenshots/Screenshot%202023-04-16%20195253.png?raw=true "Optional Title") *_Output Pages_* ![Output Stock Comparison Pages 1](https://github.com/AyushPadvekar05/Stock-Price-Prediction-Web-App/blob/main/Screenshots/Screenshot%202023-04-16%20193814.png?raw=true "Optional Title") ![Output Stock Comparison Pages 2](https://github.com/AyushPadvekar05/Stock-Price-Prediction-Web-App/blob/main/Screenshots/Screenshot%202023-04-16%20193833.png?raw=true "Optional Title") # Dashboard Pages This project includes a dashboard that displays stock prices and predictions in real-time. The dashboard is implemented using Plotly and Dash libraries in Python. Users can interact with the dashboard to view different stocks and time periods. *_Input Page_* ![Output Dashboard Pages](https://github.com/AyushPadvekar05/Stock-Price-Prediction-Web-App/blob/main/Screenshots/Screenshot%202023-04-16%20195304.png?raw=true "Optional Title") *_Output Pages_* ![Input Dashboard Pages 1](https://github.com/AyushPadvekar05/Stock-Price-Prediction-Web-App/blob/main/Screenshots/Screenshot%202023-04-16%20193909.png?raw=true "Optional Title") ![Input Dashboard Pages 2](https://github.com/AyushPadvekar05/Stock-Price-Prediction-Web-App/blob/main/Screenshots/Screenshot%202023-04-16%20193933.png?raw=true "Optional Title") ![Input Dashboard Pages 3](https://github.com/AyushPadvekar05/Stock-Price-Prediction-Web-App/blob/main/Screenshots/Screenshot%202023-04-16%20193949.png?raw=true "Optional Title") ## Usage To use this code, follow these steps: 1. Clone this repository to your local machine. 2. Install the required libraries by running `pip install -r requirements.txt` in the terminal. 3. Open the `main.ipynb` file in a Jupyter Notebook or any Python IDE of your choice. 4. Run the code cells in order to preprocess the data, train the models, and make predictions. 5. You can modify the code to use your own dataset or tweak the model parameters to improve performance.