K Means Algorithm With Real Life Problem It has a complicated name but it is sample and is a popular unsupervised machine learning technique. It means to create k number of centroid and then allocate every data point to the nearest cluster, while keeping the number centroid. Let’s explore this technique with an example, Here we have an online tea store data where we have details of customer, their date of account created and purchase styles. In this we are interested to know what makes the customer comeback to the store. Retention is the one of the biggest mystery in any industry. Let us quickly open our jupyter notebook. # Import Necessary Libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns %matplotlib inline import warnings warnings . filterwarnings('ignore') Read the file in Pandas, # Importing Data #Import Dataset cr = pd . rea...
Devil’s in the data. I am a very curious and observant little thing. I have experience in Business Analytics of Real Estate and Engineering. I love playing with data and visualising it