This repository contains a Python script that uses a Long Short-Term Memory (LSTM) neural network to predict stock prices. The model is trained on historical stock data fetched from alpha vantage API .
- Fetches stock data from Alpha Vantage API.
- Preprocesses the stock data using MinMax scaling.
- Builds and trains an LSTM model to predict future stock prices.
- Visualizes the actual vs predicted stock prices.
- Displays the actual and predicted prices for each date.
To run the script, you will need the following Python packages:
numpy
pandas
pip install alpha-vantage
matplotlib
scikit-learn
tensorflow
You can install the required packages by running:
pip install numpy pandas alpha-vantage matplotlib scikit-learn tensorflow