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
Hands-On Unsupervised Learning with Python

You're reading from  Hands-On Unsupervised Learning with Python

Product type Book
Published in Feb 2019
Publisher Packt
ISBN-13 9781789348279
Pages 386 pages
Edition 1st Edition
Languages
Author (1):
Giuseppe Bonaccorso Giuseppe Bonaccorso
Profile icon Giuseppe Bonaccorso
Toc

Table of Contents (12) Chapters close

Preface 1. Getting Started with Unsupervised Learning 2. Clustering Fundamentals 3. Advanced Clustering 4. Hierarchical Clustering in Action 5. Soft Clustering and Gaussian Mixture Models 6. Anomaly Detection 7. Dimensionality Reduction and Component Analysis 8. Unsupervised Neural Network Models 9. Generative Adversarial Networks and SOMs 10. Assessments 11. Other Books You May Enjoy

Agglomerative clustering

As seen in other algorithms, in order to perform aggregations, we need to define a distance metric first, which represents the dissimilarity between samples. We have already analyzed many of them but, in this context, it's helpful to start considering the generic Minkowski distance (parametrized with p):

Two particular cases correspond to p=2 and p=1. In the former case, when p=2, we obtain the standard Euclidean distance (equivalent to the L2 norm):

When p=1, we obtain the Manhattan or city block distance (equivalent to the L1 norm):

The main differences between these distances were discussed in Chapter 2, Clustering Fundamentals. In this chapter, it's useful to introduce the cosine distance, which is not a proper distance metric (from a mathematical point of view), but it is very helpful when the discrimination between samples must depend...

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