Customer Segmentation 2
Customer Segmentation 2
Project Overview
Project Title: Customer Segmentation using Data Science Techniques.
Project Phase: Phase 2 – Transforming Design into Innovation in
Applied Data Science
Dataset Link:
https://www.kaggle.com/datasets/akram24/mall-
customers
INTRODUCTION
In the previous phase, we discussed the design phase of our Applied Data
Science project, where we defined the problem, set objectives, and created a
high-level plan. Now, we will outline the steps to put our design into
innovation and transform our ideas into a working solution. We will also
provide an example Python program with a dataset to illustrate the process.
• Review and refine the project objectives based on the insights gained
during the design phase.
• Ensure that the objectives are SMART (Specific, Measurable,
Achievable, Relevant, Time-bound)
Identify the data sources needed to address the Collect customer data, including
attributes like purchase history, demographic information, and interaction
behavior.
Step 1: Import the libraries
Output:
Data Preproessing
Cleaning and preprocessing data for mall customers from a CSV file
typically involves tasks like handling missing values, encoding
categorical features, and scaling or normalizing numerical features.
Here’s a Python program using the pandas library to clean and
preprocess a CSV file containing mall customer data:
(1) Check for missing values
Output:
Step 1:
pip install pandas matplotlib seaborn
OUTPUT:
Step 2:
STEP 3: Explore the dataset to understand its structure and the type of data
it contains:
OUTPUT:
OUTPUT:
-Gender distribution
OUTPUT:
Spending Score vs. Annual Income:
-
OUTPUT:
-Age vs. Spending Score:
OUTPUT:
METHOD 2
DEEP LEARNING ARCHITECTURE
Deep learning is a subfield of machine learning that focuses on
artificial neural networks and algorithms inspired by the structure
and function of the human brain. It's a subset of machine learning
that has gained significant attention and popularity due to its ability
to learn from large amounts of data and solve complex tasks. Here's
an explanation of key concepts in deep learning:
PYTHON CODE:
OUTPUT:
Submitted By:
S. Dhanalakshmi B.tech information Technology
IBM Naan Mudhalvan Applied Data Science Group 2 (PHASE
2)