Skip to main content
100%

Created on Cognitive Class Labs

✓ Published0🌍 Public
DDAVINDER
Last edited Jun 3, 2019
Created on Jun 3, 2019

This example demonstrates k-means clustering on two datasets, first illustrating the algorithm on an engineered set of 30 data points in two distinct clusters, then applying it to customer segmentation. The visualization uses Matplotlib’s inline plotting to render the resulting cluster assignments and centroids, computed via scikit-learn's `KMeans` API. The initial dataset is defined manually as x1 and x2 coordinate lists, while the segmentation relies on customer data, both processed within a Jupyter notebook environment using NumPy for computation.

AI-generated description

Similar vizzes