{"id":22994032,"url":"https://github.com/nehul1149/sales-prediction-using-linear-regression","last_synced_at":"2025-07-26T13:14:32.321Z","repository":{"id":259498981,"uuid":"878048255","full_name":"Nehul1149/Sales-Prediction-using-Linear-Regression","owner":"Nehul1149","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-24T17:31:59.000Z","size":4149,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T03:41:23.404Z","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/Nehul1149.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-24T17:28:02.000Z","updated_at":"2024-10-24T17:32:02.000Z","dependencies_parsed_at":"2024-10-26T09:54:36.609Z","dependency_job_id":null,"html_url":"https://github.com/Nehul1149/Sales-Prediction-using-Linear-Regression","commit_stats":null,"previous_names":["nehul1149/sales-prediction-using-linear-regression"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nehul1149%2FSales-Prediction-using-Linear-Regression","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nehul1149%2FSales-Prediction-using-Linear-Regression/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nehul1149%2FSales-Prediction-using-Linear-Regression/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nehul1149%2FSales-Prediction-using-Linear-Regression/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nehul1149","download_url":"https://codeload.github.com/Nehul1149/Sales-Prediction-using-Linear-Regression/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246819323,"owners_count":20839087,"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-12-15T05:16:47.528Z","updated_at":"2025-04-02T12:40:32.348Z","avatar_url":"https://github.com/Nehul1149.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Explanation of Key Sections:\n## Data Preparation and Feature Engineering:\n\n1- Load the dataset.\nCreate a sales difference column and generate supervised data.\nSplit the data into training and testing sets.\n\n2- Scaling:\nUse Min-Max scaling to scale the features between -1 and 1.\n\n3- Training and Predictions:\nTrain a Linear Regression model.\nMake predictions and inverse transform the results to the original scale.\n\n4- Evaluation:\nCalculate MSE, MAE, and R2 score to evaluate the model’s performance.\n\n5- Visualization:\nPlot the actual sales versus predicted sales for visual comparison.\n\n# Sales Prediction with Linear Regression\n\nThis project demonstrates how to use linear regression to predict monthly sales based on historical sales data. The project includes data preprocessing, feature engineering, model training, evaluation, and visualization.\n\n## Introduction\n\nThe goal of this project is to predict future sales using a linear regression model. We use historical sales data, preprocess it, create a supervised learning dataset, and train a linear regression model to make predictions. The project also includes evaluation metrics and visualizations to compare the predicted sales against the actual sales.\n\n## Prerequisites\n\n- Python 3.x\n- Pandas\n- NumPy\n- Scikit-learn\n- Matplotlib\n\n# The script will perform the following steps:\n\n* Load and preprocess the data\n* Create a supervised learning problem\n* Split the data into training and testing sets\n* Train a linear regression model\n* Evaluate the model using MSE, MAE, and R2 score\n* Plot the actual vs. predicted sales\n\n# Results\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnehul1149%2Fsales-prediction-using-linear-regression","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnehul1149%2Fsales-prediction-using-linear-regression","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnehul1149%2Fsales-prediction-using-linear-regression/lists"}