Giter VIP home page Giter VIP logo

wassimoubaziz / sad-project Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.49 MB

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.

License: MIT License

Jupyter Notebook 100.00%
ai artificial-intelligence machine-learning oubaziz wassim matplotlib numpy pandas python sklearn

sad-project's Introduction

Walmart Sales Prediction Documentation

By OUBAZIZ Wassim and CHELGHAM Mounsif

1 Introduction

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.

1.1 Objectives

  • Predict weekly sales for Walmart stores.
  • Identify factors influencing sales.
  • Optimize model performance.

2 Project Setup

The project begins with importing necessary libraries and loading the datasets.

  • Python code snippet for Importing libraries and Loading datasets

Figure 1: Loading datasets

3 Data Exploration

We perform exploratory data analysis (EDA) to gain insights into the dataset.

  1. Overview of Data
  • Python code snippet of displaying headers of datasets

Figure 2: Overview of Data

  1. Missing Values
  • Python code snippet for checking missing values

Figure 3: Checking Missing Values

  1. Correlation Matrix
  • Python code snippet for Correlation Matrix

Figure 4: Correlation Matrix Code

Execution...

Figure 5: Correlation Matrix

  1. Store Type Distribution
  • Python code snippet for displaying a pie chart of store types

Figure 6: Code of Store Type Distribution

Execution...

Figure 7: Store Type Distribution

4 Data Preprocessing

We preprocess the data to prepare it for model training.

4.1 Feature Engineering

  • Python code snippet for feature engineering

Figure 8: Feature Engineering Code

5 Exploratory Data Analysis (continued)

We continue exploring the data to understand the relationship between features and sales.

5.1 Weekly Sales vs. Store Size

  • Python code snippet for plotting weekly sales vs. store size

Figure 9: Weekly Sales vs. Store Size Code

Execution...

Figure 10: Weekly Sales vs. Store Size

6 Model Training

We train machine learning models to predict weekly sales.

6.1 Random Forest Regression

  • Python code snippet for training Random Forest model

Figure 11: Training Random Forest Model Code

7 Model Evaluation

We evaluate the performance of the trained models.

7.1 Random Forest Regression Results

  • Python code snippet for evaluating Random Forest model

Figure 12: Actual vs. Predicted Sales (Random Forest) Code

Execution...

Figure 13: Actual vs. Predicted Sales (Random Forest)

8 Conclusion

The 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. 7

sad-project's People

Contributors

wassimoubaziz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.