{"id":20963069,"url":"https://github.com/wassimoubaziz/sad-project","last_synced_at":"2026-04-08T16:01:37.239Z","repository":{"id":221651980,"uuid":"754993536","full_name":"wassimOubaziz/sad-project","owner":"wassimOubaziz","description":"This project aims to predict weekly sales for Walmart stores using machine learning algorithms. The dataset contains various features such as store type, size, department, temperature, fuel price, CPI, unemployment rate, and markdowns.","archived":false,"fork":false,"pushed_at":"2024-02-09T07:54:51.000Z","size":6641,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-31T03:27:30.389Z","etag":null,"topics":["ai","artificial-intelligence","machine-learning","matplotlib","numpy","oubaziz","pandas","python","sklearn","wassim"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wassimOubaziz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-02-09T07:43:55.000Z","updated_at":"2024-02-09T07:56:29.000Z","dependencies_parsed_at":"2024-02-09T08:47:41.715Z","dependency_job_id":null,"html_url":"https://github.com/wassimOubaziz/sad-project","commit_stats":null,"previous_names":["wassimoubaziz/sad-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wassimOubaziz/sad-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wassimOubaziz%2Fsad-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wassimOubaziz%2Fsad-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wassimOubaziz%2Fsad-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wassimOubaziz%2Fsad-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wassimOubaziz","download_url":"https://codeload.github.com/wassimOubaziz/sad-project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wassimOubaziz%2Fsad-project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31562697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ai","artificial-intelligence","machine-learning","matplotlib","numpy","oubaziz","pandas","python","sklearn","wassim"],"created_at":"2024-11-19T02:41:03.960Z","updated_at":"2026-04-08T16:01:37.222Z","avatar_url":"https://github.com/wassimOubaziz.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿Walmart Sales Prediction Documentation\n\nBy **OUBAZIZ Wassim** and **CHELGHAM Mounsif**\n\n**1 Introduction**\n\nThis project aims to predict weekly sales for Walmart stores using machine learning algorithms. The dataset contains various features such as store type, size, department, temperature, fuel price, CPI, unemployment rate, and markdowns.\n\n**1.1 Objectives**\n\n- Predict weekly sales for Walmart stores.\n- Identify factors influencing sales.\n- Optimize model performance.\n\n**2 Project Setup**\n\nThe project begins with importing necessary libraries and loading the datasets.\n\n- Python code snippet for Importing libraries and Loading datasets\n\n![](Aspose.Words.8dc1b6f9-188b-4295-8fb4-4bf2c91fde1c.001.png)\n\nFigure 1: Loading datasets\n\n3  **Data Exploration**\n\nWe perform exploratory data analysis (EDA) to gain insights into the dataset.\n\n1. **Overview of Data**\n- Python code snippet of displaying headers of datasets\n\n![](Aspose.Words.8dc1b6f9-188b-4295-8fb4-4bf2c91fde1c.002.png)\n\nFigure 2: Overview of Data\n\n2. **Missing Values**\n- Python code snippet for checking missing values\n\n![](Aspose.Words.8dc1b6f9-188b-4295-8fb4-4bf2c91fde1c.003.png)\n\nFigure 3: Checking Missing Values\n\n3. **Correlation Matrix**\n- Python code snippet for Correlation Matrix\n\n![](Aspose.Words.8dc1b6f9-188b-4295-8fb4-4bf2c91fde1c.004.png)\n\nFigure 4: Correlation Matrix Code\n\nExecution...\n\n![](Aspose.Words.8dc1b6f9-188b-4295-8fb4-4bf2c91fde1c.005.png)\n\nFigure 5: Correlation Matrix\n\n4. **Store Type Distribution**\n- Python code snippet for displaying a pie chart of store types\n\n![](Aspose.Words.8dc1b6f9-188b-4295-8fb4-4bf2c91fde1c.006.png)\n\nFigure 6: Code of Store Type Distribution\n\nExecution...\n\n![](Aspose.Words.8dc1b6f9-188b-4295-8fb4-4bf2c91fde1c.007.png)\n\nFigure 7: Store Type Distribution\n\n4  **Data Preprocessing**\n\nWe preprocess the data to prepare it for model training.\n\n**4.1 Feature Engineering**\n\n- Python code snippet for feature engineering\n\n![](Aspose.Words.8dc1b6f9-188b-4295-8fb4-4bf2c91fde1c.008.png)\n\nFigure 8: Feature Engineering Code\n\n5  **Exploratory Data Analysis (continued)**\n\nWe continue exploring the data to understand the relationship between features and sales.\n\n**5.1 Weekly Sales vs. Store Size**\n\n- Python code snippet for plotting weekly sales vs. store size\n\n![](Aspose.Words.8dc1b6f9-188b-4295-8fb4-4bf2c91fde1c.009.png)\n\nFigure 9: Weekly Sales vs. Store Size Code\n\nExecution...\n\n![](Aspose.Words.8dc1b6f9-188b-4295-8fb4-4bf2c91fde1c.010.png)\n\nFigure 10: Weekly Sales vs. Store Size\n\n6  **Model Training**\n\nWe train machine learning models to predict weekly sales.\n\n**6.1 Random Forest Regression**\n\n- Python code snippet for training Random Forest model\n\n![](Aspose.Words.8dc1b6f9-188b-4295-8fb4-4bf2c91fde1c.011.png)\n\nFigure 11: Training Random Forest Model Code\n\n7  **Model Evaluation**\n\nWe evaluate the performance of the trained models.\n\n**7.1 Random Forest Regression Results**\n\n- Python code snippet for evaluating Random Forest model\n\n![](Aspose.Words.8dc1b6f9-188b-4295-8fb4-4bf2c91fde1c.012.png)\n\nFigure 12: Actual vs. Predicted Sales (Random Forest) Code\n\nExecution...\n\n![](Aspose.Words.8dc1b6f9-188b-4295-8fb4-4bf2c91fde1c.013.png)\n\nFigure 13: Actual vs. Predicted Sales (Random Forest)\n\n8  **Conclusion**\n\nThe Walmart Sales Prediction project demonstrates the application of machine learning techniques to forecast weekly sales accurately. By analyzing various features and employing advanced regression models like Random Forest, we can optimize sales predictions and assist in strategic decision-making for Walmart stores. Further model refinement and feature engineering could potentially enhance prediction accuracy and provide more valu- able insights for the retail industry.\n7\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwassimoubaziz%2Fsad-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwassimoubaziz%2Fsad-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwassimoubaziz%2Fsad-project/lists"}