{"id":19926234,"url":"https://github.com/milind-ranjan/stock-predictor","last_synced_at":"2026-08-01T22:31:13.611Z","repository":{"id":259385099,"uuid":"876875389","full_name":"Milind-Ranjan/Stock-Predictor","owner":"Milind-Ranjan","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-24T06:35:47.000Z","size":668,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T19:32:50.316Z","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/Milind-Ranjan.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":"2024-10-22T17:41:50.000Z","updated_at":"2024-10-24T06:35:51.000Z","dependencies_parsed_at":"2024-10-25T01:56:31.733Z","dependency_job_id":"b06a7ea0-a7ae-434f-b102-b6de5340bcdf","html_url":"https://github.com/Milind-Ranjan/Stock-Predictor","commit_stats":null,"previous_names":["milind-ranjan/stock-predictor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Milind-Ranjan/Stock-Predictor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Milind-Ranjan%2FStock-Predictor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Milind-Ranjan%2FStock-Predictor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Milind-Ranjan%2FStock-Predictor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Milind-Ranjan%2FStock-Predictor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Milind-Ranjan","download_url":"https://codeload.github.com/Milind-Ranjan/Stock-Predictor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Milind-Ranjan%2FStock-Predictor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36172933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-08-01T02:00:05.789Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-11-12T22:28:32.105Z","updated_at":"2026-08-01T22:31:13.576Z","avatar_url":"https://github.com/Milind-Ranjan.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stock Price Predictor\n\n## Overview\nThis project implements a stock price prediction model using Long Short-Term Memory (LSTM) networks. The model is designed to predict future stock prices based on historical data retrieved from Yahoo Finance.\n\n## Features\n- Fetch historical stock data using the Yahoo Finance API.\n- Preprocess data by scaling and transforming it for LSTM input.\n- Train an LSTM model to predict stock prices.\n- Evaluate model performance using metrics such as Mean Absolute Error (MAE) and R² score.\n- Visualize predicted stock prices against actual stock prices.\n\n## Technologies Used\n- Python\n- TensorFlow\n- Keras\n- Pandas\n- NumPy\n- Matplotlib\n- Google Dataset\n\n## Requirements\nTo run this project, you will need the following Python packages:\n- `pandas`\n- `numpy`\n- `matplotlib`\n- `tensorflow`\n- `yfinance`\n- `sklearn`\n\nYou can install the required packages using pip:\n```bash\npip install pandas numpy matplotlib tensorflow yfinance scikit-learn\n```\n## Getting Started\n\nYou can install the required packages using pip:\n```bash\npip install pandas numpy matplotlib tensorflow yfinance scikit-learn\n```\nClone the Repository:\n   ```bash\ngit clone https://github.com/milindranjan/stock-predictor.git\ncd stock-price-predictor\n```\nRun the Script:\n```bash\npython stock_predictor.py\n```\nView Results:\nAfter running the script, you will see the predicted stock prices alongside the actual stock prices in a visual plot.\n\n## Model Architecture\n\n### The LSTM model consists of:\n\n-\t4 LSTM layers with 50 units each and a dropout layer to prevent overfitting.\n-\tAn output layer predicting the next stock price.\n\n### Performance Metrics\n\n-\tMean Absolute Error (MAE): Measures the average magnitude of errors between predicted and actual prices.\n-\tR² Score: Indicates the proportion of variance in the dependent variable that can be explained by the independent variable(s).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilind-ranjan%2Fstock-predictor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilind-ranjan%2Fstock-predictor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilind-ranjan%2Fstock-predictor/lists"}