GithubHelp home page GithubHelp logo

blockchain99 / customer-segments Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 6.76 MB

Analyze customer data and coded to identify customer segments hidden in the data using unsupervised learning techniques

HTML 52.74% Jupyter Notebook 47.11% CSS 0.15%

customer-segments's Introduction

customer-segments

In this project I applied unsupervised learning techniques on product spending data collected for customers of a wholesale distributor in Lisbon, Portugal to identify customer segments hidden in the data.

First explored the data by selecting a small subset to sample and determine if any product categories highly correlate with one another. Afterwards, preprocessed the data by scaling each product category and then identified (and removed) unwanted outliers. With the good, clean customer spending data, I applied PCA transformations to the data and implemented clustering algorithms to segment the transformed customer data. Finally, I compared the segmentation found with an additional labeling and consider ways this information could assist the wholesale distributor with future service changes.

In this project, I explained the following key techniques of unsupervised learning in the reports (customer_segments_YOONSUPARK.ipynb, customer_segments_YOONSUPARK.html) : ####How to apply preprocessing techniques such as feature scaling and outlier detection. ####How to interpret data points that have been scaled, transformed, or reduced from PCA. ####How to analyze PCA dimensions and construct a new feature space. ####How to optimally cluster a set of data to find hidden patterns in a dataset. ####How to assess information given by cluster data and use it in a meaningful way.

Data

The dataset for this project can be found on the UCI Machine Learning Repository. ( https://archive.ics.uci.edu/ml/datasets/Wholesale+customers )

Installation and usage

Program is written in python 2.7, it one may need anaconda shoulde be installed(including numpy, scipy, pandas, matplotlib, jupyter) ( https://docs.continuum.io/anaconda/install ) or install python 2.7 and then install Numpy, Scipy, Pandas, matplotlib,jupyter manually as follows.

sudo pip install numpy scipy matplotlib

  • after anaconda installed , one may need to jupyter run, by type in command line and hit the enter.

jupyter notebook

and then click customer_segments_YOONSUPARK.ipynb in web page.

Meta

Yoonsu Park - http://www.patternics.com Distributed under the MIT license. See LICENSE for more information( https://en.wikipedia.org/wiki/MIT_License ). http://www.patternics.com/customer-segments/

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.