{"id":18106858,"url":"https://github.com/ebadshabbir/bluff-detection-model-polynomial_regression-","last_synced_at":"2026-05-07T08:37:43.015Z","repository":{"id":258734022,"uuid":"872610464","full_name":"EbadShabbir/Bluff-Detection-Model-polynomial_regression-","owner":"EbadShabbir","description":" This project predicts employee salaries based on position levels using Linear and Polynomial Regression models. It trains models with degrees 2, 3, and 4 on a dataset of job titles, position levels, and salaries, and predicts the salary for a position level of 6.5. The results are visualized to compare model performance. ","archived":false,"fork":false,"pushed_at":"2024-10-14T18:43:53.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T06:45:49.192Z","etag":null,"topics":["jupyter-notebook","linear-regression","machine-learning","matplotlib-pyplot","multiple-linear-regression","numpy","polynomial-regression","python"],"latest_commit_sha":null,"homepage":"https://www.kaggle.com/code/ebadshabbir/bluff-detection-model-polynomial-regression","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/EbadShabbir.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-14T18:34:37.000Z","updated_at":"2024-10-17T09:39:01.000Z","dependencies_parsed_at":"2024-10-20T19:37:26.114Z","dependency_job_id":null,"html_url":"https://github.com/EbadShabbir/Bluff-Detection-Model-polynomial_regression-","commit_stats":null,"previous_names":["ebadshabbir/bluff-detection-model-polynomial_regression-"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EbadShabbir%2FBluff-Detection-Model-polynomial_regression-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EbadShabbir%2FBluff-Detection-Model-polynomial_regression-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EbadShabbir%2FBluff-Detection-Model-polynomial_regression-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EbadShabbir%2FBluff-Detection-Model-polynomial_regression-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EbadShabbir","download_url":"https://codeload.github.com/EbadShabbir/Bluff-Detection-Model-polynomial_regression-/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445649,"owners_count":20939953,"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":["jupyter-notebook","linear-regression","machine-learning","matplotlib-pyplot","multiple-linear-regression","numpy","polynomial-regression","python"],"created_at":"2024-10-31T23:08:15.403Z","updated_at":"2026-05-07T08:37:42.987Z","avatar_url":"https://github.com/EbadShabbir.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polynomial and Linear Regression for Position Salaries\n\nThis project uses both Linear and Polynomial Regression techniques to predict employee salaries based on their job position levels. The dataset contains position levels and their corresponding salaries, allowing us to model and compare different degrees of polynomial regression.\n\n## Table of Contents\n- [Overview](#overview)\n- [Dependencies](#dependencies)\n- [Installation](#installation)\n- [Dataset](#dataset)\n- [Usage](#usage)\n- [Model Results](#model-results)\n- [Visualizations](#visualizations)\n- [License](#license)\n\n## Overview\nThe purpose of this project is to:\n- Train and visualize a **Linear Regression** model.\n- Train and visualize **Polynomial Regression** models with degrees 2, 3, and 4.\n- Compare the predictions made by each model for a position level of 6.5.\n\nThis allows us to understand the difference in performance between linear and polynomial regression when fitting non-linear data.\n\n## Dependencies\nThe project uses the following Python libraries:\n- `pandas`\n- `scikit-learn`\n- `matplotlib`\n\n\n## Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/EbadShabbir/polynomial-regression-position-salaries.git\n2. Installing Libraries:\n   - pip install pandas scikit-learn matplotlib\n   - pip install -r requirements.txt\n# LINEAR REGRESSION RESULT\nlin_pred = lin_regs.predict([[6.5]])  \nprint(f\"Linear Regression Prediction for 6.5: {lin_pred}\")\n\n# POLYNOMIAL REGRESSION RESULT (degree 2)\npoly_pred_2 = lin_reg_2.predict(poly_regs_2.fit_transform([[6.5]]))  \nprint(f\"Polynomial Regression (Degree 2) Prediction for 6.5: {poly_pred_2}\")\n\n# POLYNOMIAL REGRESSION RESULT (degree 3)\npoly_pred_3 = lin_reg_3.predict(poly_regs_3.fit_transform([[6.5]]))  \nprint(f\"Polynomial Regression (Degree 3) Prediction for 6.5: {poly_pred_3}\")\n\n# POLYNOMIAL REGRESSION RESULT (degree 4)\npoly_pred_4 = lin_reg_4.predict(poly_regs_4.fit_transform([[6.5]]))  \nprint(f\"Polynomial Regression (Degree 4) Prediction for 6.5: {poly_pred_4}\")\n\n### Notes:\n1. Make sure you include images of the regression plots (`linear_regression.png`, `polynomial_regression_2.png`, etc.) in the `images` directory.\n2. Customize the actual predicted salary values in the `Model Results` section after running the script.\n3. Ensure that the dataset path and other links (e.g., GitHub repository URL) are updated to reflect your environment.\n\nThis `README.md` should provide clear instructions and detailed explanations for users to understand and run your project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febadshabbir%2Fbluff-detection-model-polynomial_regression-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Febadshabbir%2Fbluff-detection-model-polynomial_regression-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febadshabbir%2Fbluff-detection-model-polynomial_regression-/lists"}