Assignment ML
Assignment ML
K-means Clustering – Example: A pizza chain wants to open its delivery centres
across a city. What do you think would be the possible challenges?
They need to analyse the areas from where the pizza is being ordered
frequently.
They need to understand as to how many pizza stores has to be opened to
cover delivery in the area.
They need to figure out the locations for the pizza stores within all these
areas in order to keep the distance between the store and delivery points
minimum.
Hierarchical clustering can’t handle big data well but K Means clustering
can. This is because the time complexity of K Means is linear i.e. O(n) while
that of hierarchical clustering is quadratic i.e. O(n 2).
In K Means clustering, since we start with random choice of clusters, the
results produced by running the algorithm multiple times might differ.
While results are reproducible in Hierarchical clustering.
K Means is found to work well when the shape of the clusters is hyper
spherical (like circle in 2D, sphere in 3D).
K Means clustering requires prior knowledge of K i.e. no. of clusters you
want to divide your data into. But, you can stop at whatever number of
clusters you find appropriate in hierarchical clustering by interpreting the
dendrogram.
3. Explain Multiclass classification.
BASIS FOR
CLASSIFICATION CLUSTERING
COMPARISON
between them.
5. Apply K-means algorithm on given data for k=3, Use C1 (2), C2 (16)
and C3 (38) as initial cluster centres.
Data: 2,4,6,3,31,13,15,16,38,35,14,21,23,25,3
On the basis of given mean value 2,16 and 38 the first cluster formed are:
From the new cluster formed i.e, K1,K2,K3 the new mean and clusters will
be