{"id":24784352,"url":"https://github.com/devmuniz02/stock-prediction-lstm-sentiment-analysis-python","last_synced_at":"2025-03-24T07:47:07.289Z","repository":{"id":207418288,"uuid":"712488911","full_name":"devMuniz02/Stock-prediction-LSTM-Sentiment-Analysis-Python","owner":"devMuniz02","description":"Project to predict stock prices of next day data using a LSTM model in python and sentiment analysis of news related to the stock market in general and the news of the stock to predict.  ","archived":false,"fork":false,"pushed_at":"2025-01-22T00:10:49.000Z","size":662,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T13:14:05.482Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devMuniz02.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-31T15:11:24.000Z","updated_at":"2025-01-22T00:10:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"1064f82a-e01f-414e-91ec-8ce81eff89b8","html_url":"https://github.com/devMuniz02/Stock-prediction-LSTM-Sentiment-Analysis-Python","commit_stats":null,"previous_names":["devmuniz02/stock-prediction-lstm-sentiment-analysis-python-rl"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devMuniz02%2FStock-prediction-LSTM-Sentiment-Analysis-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devMuniz02%2FStock-prediction-LSTM-Sentiment-Analysis-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devMuniz02%2FStock-prediction-LSTM-Sentiment-Analysis-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devMuniz02%2FStock-prediction-LSTM-Sentiment-Analysis-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devMuniz02","download_url":"https://codeload.github.com/devMuniz02/Stock-prediction-LSTM-Sentiment-Analysis-Python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245231857,"owners_count":20581689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-29T13:14:07.608Z","updated_at":"2025-03-24T07:47:07.269Z","avatar_url":"https://github.com/devMuniz02.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stock Prediction with LSTM and Sentiment Analysis\n\nThis project aims to predict stock prices for the next day using a Long Short-Term Memory (LSTM) model in Python, supplemented by sentiment analysis of news. The approach combines:\n- **Deep Learning**: Using LSTM for time-series stock price prediction.\n- **Natural Language Processing**: Analyzing market-related news sentiment.\n\n---\n\n## Project Overview\n\n### Files in the Repository\n\n1. **`LSTM.ipynb`**\n   - Contains the main workflow for training and testing the LSTM model with stock price data.\n   - Below are sample results from the notebook:\n\n     **Full Data Prediction**  \n     ![Full Data Prediction](https://github.com/user-attachments/assets/ca0f8a97-3fe3-4739-a173-67ce0b438451)\n\n     **Test Predictions**  \n     ![Test Predictions](https://github.com/user-attachments/assets/1127e88a-b1d8-405e-a88e-5a512d38faf2)\n\n2. **`SaveSentiment.ipynb`**\n   - Saves the sentiment data extracted from news articles using sentiment analysis techniques.\n   - This notebook gathers news sentiments relevant to specific stocks or markets.\n\n3. **`LSTMdef.ipynb`**\n   - Uses the sentiment data saved by `SaveSentiment.ipynb` and integrates it with stock data to train and evaluate the LSTM model.\n   - Combines stock data and sentiment data for improved predictive performance.\n\n4. **`README.md`**\n   - Provides an overview of the project, the files, and their roles in the workflow.\n\n---\n\n## Features\n\n- **Stock Price Prediction**: Time-series forecasting with LSTM for accurate trend analysis.\n- **Sentiment Analysis**: Evaluates market sentiment from general news and stock-specific articles to inform predictions.\n\n---\n\n## Getting Started\n\n### Prerequisites\nTo run the project, ensure you have the following installed:\n- Python 3.8 or later\n- Required Python libraries: `tensorflow`, `pandas`, `numpy`, `sklearn`, `matplotlib`, `nltk`, `yfinance`, and `fredapi`.\n\n---\n\n### Check Out My Other Projects\nExplore more of my AI and ML work [here](https://github.com/devMuniz02/AI-ML-Code-and-projects/).\n\n---\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevmuniz02%2Fstock-prediction-lstm-sentiment-analysis-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevmuniz02%2Fstock-prediction-lstm-sentiment-analysis-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevmuniz02%2Fstock-prediction-lstm-sentiment-analysis-python/lists"}