May 2018
Beginner
490 pages
13h 16m
English
The Python program uses the sklearn library (which contains efficient algorithms), pandas for data analysis (only used to import the data in this program), and Matplotlib to plot the results as data points (the coordinates of the data) and clusters (data points classified in each cluster with a color). First the following models are imported:
from sklearn.cluster import KMeans import pandas as pdfrom matplotlib import pyplot as plt
NumPy is not a prerequisite since sklearn runs the computation.
Read now
Unlock full access