![](https://private-user-images.githubusercontent.com/94792103/331147958-dc4f0585-3eaa-4837-a50f-c64375674f41.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5NTYzNDEsIm5iZiI6MTcyMTk1NjA0MSwicGF0aCI6Ii85NDc5MjEwMy8zMzExNDc5NTgtZGM0ZjA1ODUtM2VhYS00ODM3LWE1MGYtYzY0Mzc1Njc0ZjQxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI2VDAxMDcyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNlYzdmMTQyNjc4OTkyNTVhYzk2Njk1YWRlMWRiOTFiZWI2ODU5NGUyOGVlMGI3MmNjMjQ2NDcwYTMxOTJmYTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ZUXLSuAiufeAZ6HGISdRY_gMiwOCu7-uGLYLoAUaeoA)
This project is a FastAPI application that predicts the closing stock price for a given company based on user-specified parameters. It utilizes various machine learning models for prediction, including:
- RandomForestRegressor 🌳
- ExtraTreesRegressor 🌲
- LinearRegression ➖
- KNeighborsRegressor 🤝
- LSTM implementation 🔄
This application utilizes the Yahoo Finance API to retrieve historical stock data for training and prediction purposes.
- Download and preprocess historical stock data
- Train a stock price prediction model of your choice
- Make predictions on future closing stock prices
Example: Predicting oogle
Stock Price
Input | Response | |
---|---|---|
![]() |
- Ensure you have Python installed.
- Create a new virtual environment (recommended).
- Activate the virtual environment.
- Install required dependencies:
pip install -r requirements.txt
- Run the application:
uvicorn app:app --reload
- Access the API documentation in your web browser: http:https://127.0.0.1:8000/docs
The documentation provides instructions on interacting with the API to make predictions.
- Maira Usman: Developed the GUI for this project. You can find the code here: Link to StockSeer-Frontend.
Important: Stock price prediction is inherently uncertain. This application should not be used for making financial decisions.