GithubHelp home page GithubHelp logo

rgarciaseija / dashboard-e-commerce-shipping Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jadanpl/e-commerce-shipping

0.0 0.0 0.0 4.13 MB

Using KNN classifier as the final model to determine whether a customer would give rating 1.

Python 1.06% CSS 0.19% HTML 0.96% Jupyter Notebook 97.79%

dashboard-e-commerce-shipping's Introduction

E-Commerce-Shipping

For full explanation, please read my Medium article, CRISP-DM Methodology With Python (Model Deployment Using Flask Included) | Classification Case Study Using KNN Model.

Problem Statement ๐Ÿคฉ

The e-commerce platform is facing challenges in predicting customer ratings accurately, which can lead to reduced customer satisfaction, lower sales, and negative brand reputation. Despite the availability of customer rating data, the current system lacks the ability to analyze and interpret the data in a meaningful way, resulting in inaccurate predictions. This creates a need for a more sophisticated and accurate machine learning model that can analyze customer rating data to predict customer ratings with high accuracy, leading to improved customer satisfaction, increased sales, and positive brand reputation.

Objective ๐Ÿค”

To achieve an accuracy rate of at least 80% in predicting customer ratings within a year using specific order details. This will help businesses make data-driven decisions about their products, marketing strategies, and customer service.

Dataset Source ๐Ÿ“…

The dataset was obtained from the E-Commerce Shipping Data from Kaggle.

Techniques Used ๐Ÿ•ต๏ธโ€โ™€๏ธ

To determine whether a customer would give rating 1, we can map the rating 2 to 5 as 0 to represent rating other than 1. It will become a binary classification instead of a multiclass classification.

Result ๐Ÿ”Ž

The final model is a k-Nearest Neighbors (KNN) classifier. The final model returned accuracy score of about 77.60% for the testing data. Besides, I also created a flask application with a proper frontend and UI that can be run on the local computer (as shown in the video below).

Customer.Rating.Prediction.-.Google.Chrome.2023-04-10.16-57-24.online-video-cutter.com.mp4

Recommendation ๐Ÿ“ฅ

  • Use other classification machine learning algorithms, such as support vector machine, random forest classifier, and logistic regression.
  • Utilize Randomized Search or Grid Search to tune the hyperparameters to check if the accuracy score would be higher.
  • Handle the class imbalance using SMOTE, SMOTE-TOMEK, ADASYN, or SMOTE-ENN techniques.
  • You may try to build multiclass classification model using this dataset, which means you may not need to map the rating 2 to 5 as 0 before you train the model. For a multiclass multiclass classification model, it will return the result that indicates whether a customer will give rating 1, 2, 3, 4, or 5 specifically, instead of indicating whether a customer will give rating 1 or not.

dashboard-e-commerce-shipping's People

Contributors

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