Question: Write a Python program that will take the pizza customers dataset as input and produce the clusters which represents the customer segments present in the
Write a Python program that will take the pizza customers dataset as input and produce the clusters which represents the customer segments present in the dataset.You may like to do some preprocessing on the given dataset. You have to write your own code matching to the problem statement. Add comments at appropriate place so that its easy to understand your thought process. You are supposed to use k-means clustering algorithm (custom implementation not from any library) for customer segmentations. The program should clearly output the cluster number, centroid used and number of records belonging to that cluster. The final clusters should be preserved in such a way that it can be used in following.Dataset is having pizza customers data with CustomerID Gender Age Annual Income (k$) Spending Score (1-100)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
