{"id":21606769,"url":"https://github.com/pundit4real/linear-regression-model","last_synced_at":"2025-03-18T14:48:00.948Z","repository":{"id":233271774,"uuid":"786406349","full_name":"Pundit4Real/Linear-Regression-model","owner":"Pundit4Real","description":" This repository contains code for two linear regression models: one predicts profit based on factors like R\u0026D spend, administrative spend, marketing spend, and state; the other predicts exam scores based on study hours.","archived":false,"fork":false,"pushed_at":"2024-05-05T19:41:06.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T19:29:33.119Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/Pundit4Real.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-04-14T11:16:00.000Z","updated_at":"2024-05-05T19:41:09.000Z","dependencies_parsed_at":"2024-11-24T20:29:07.552Z","dependency_job_id":"abdb8396-b459-4cdf-b413-251e39c51fd8","html_url":"https://github.com/Pundit4Real/Linear-Regression-model","commit_stats":null,"previous_names":["pundit4real/linear-regression-model"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pundit4Real%2FLinear-Regression-model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pundit4Real%2FLinear-Regression-model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pundit4Real%2FLinear-Regression-model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pundit4Real%2FLinear-Regression-model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pundit4Real","download_url":"https://codeload.github.com/Pundit4Real/Linear-Regression-model/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244245781,"owners_count":20422445,"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":"2024-11-24T20:26:59.190Z","updated_at":"2025-03-18T14:48:00.925Z","avatar_url":"https://github.com/Pundit4Real.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linear Regression Models\n\nThis repository contains code for two linear regression models:\n1. **Multiple Linear Regression Model for Profit Prediction**\n2. **Linear Regression Model for Exam Score Prediction**\n\n## Prerequisites\n- Python 3\n- Jupyter Notebook or any Python IDE\n- Create a virtual environment ( recommended )\n\n## Installation\n1. Create a virtual environment\n\n        python -m venv venv \n    \n2. Clone or download this repository to your local machine.\n\n            https://github.com/Pundit4Real/Linear-Regression-model.git\n\n3. Activate the virtual environment:\n\n- On Windows:\n\n            venv\\Scripts\\activate\n\n- On macOS and Linux:\n\n            source venv/bin/activate\n\n4. Install the required Python libraries using pip by running the command below:\n\n            pip install -r requirements.txt\n\n5. Ensure you have the datasets '50_Startups.csv' and 'students_scores.csv' in the same directory as the code.\n\n## Running the Models\n1. Open a terminal or command prompt.\n\n2. Navigate to the directory containing the code files.\n\n3. To run the Multiple Linear Regression Model for Profit Prediction:\n- Run the script `multiple_linear_regression_profit.py` using Python:\n\n                  python multiple_linear_regression_profit.py\n  \n\n4. To run the Linear Regression Model for Exam Score Prediction:\n- Run the script `linear_regression_exam_scores.py` using Python:\n  \n          python linear_regression_exam_scores.py\n  \n\n5. Both scripts will train the respective models, make predictions, display evaluation metrics, and visualize the results.\n\n## Customization\n- You can modify the code to use your own datasets by replacing the provided dataset files.\n- Experiment with different parameters and preprocessing techniques to improve model performance.\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%2Fpundit4real%2Flinear-regression-model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpundit4real%2Flinear-regression-model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpundit4real%2Flinear-regression-model/lists"}