Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Training Systems using Python Statistical Modeling

You're reading from  Training Systems using Python Statistical Modeling

Product type Book
Published in May 2019
Publisher Packt
ISBN-13 9781838823733
Pages 290 pages
Edition 1st Edition
Languages
Author (1):
Curtis Miller Curtis Miller
Profile icon Curtis Miller
Toc

Spectral clustering

The final clustering method we will look at is spectral clustering. In this section, we will learn what spectral clustering is and demonstrate how to perform it.

Of all the clustering methods mentioned in this chapter, spectral clustering may be the most opaque. Nevertheless, I will attempt to explain it. We start with a dataset, as shown in the following diagram:

Next, we compute the similarity between the points in the dataset, as seen here:

If the points are highly similar, we can infer that those points are connected:

These connections form something similar to a graph. Once we have the graph, we find connections to cut. Then, nodes that are connected belong to the same cluster. So, let's go ahead and see what spectral clustering does with the iris dataset.

We will import the SpectralClustering class and perform spectral clustering for this dataset...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime