This project uses Python and the LSTM machine learning model to predict the stock price of Tesla, Inc. (TSLA). It demonstrates the application of LSTM in forecasting stock prices through a comprehensive, step-by-step implementation guide.
To use this project, you need Python and the following libraries:
yfinance
pandas
numpy
matplotlib
keras
You can install these libraries using pip:
pip install yfinance pandas numpy matplotlib keras
To use this project, follow these steps:
-
Clone the repository to your local machine using Git:
git clone https://github.com/PrashanthReddy47/StockPricePrediction_LSTM.git
-
Navigate to the local repository on your machine:
cd StockPricePrediction_LSTM
-
Open the
StockPricePrediction_LSTM.ipynb
file in a Jupyter Notebook or Python IDE. -
Set the
ticker
variable to the stock ticker you want to predict the price for (default is TSLA). -
Run the notebook to train the LSTM model and make predictions.
This project relies on the following libraries:
yfinance
pandas
numpy
matplotlib
keras
Make sure these libraries are installed before running the script.
A demonstration of the project can be found in the Jupyter Notebook StockPricePrediction_LSTM.ipynb
.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or additions.
This project was completed following the tutorial by Computer Science on YouTube. Thank you to Computer Science for sharing their knowledge and expertise in this video.