O'Reilly logo

MATLAB for Machine Learning by Giuseppe Ciaburro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Defining a grouping in hierarchical clustering

The concept of distance and how to define a group are the two ingredients that describe a clustering algorithm. We pointed this out at the beginning of the chapter. So, after calculating the proximity between the objects in the dataset, we have to determine how the dataset objects should be grouped into clusters. To do this, we will use the linkage function. Starting from the distance measure generated by the pdist() function, we will link pairs of objects that are close into binary clusters. The linkage function works this way: after you create the cluster of binaries, they are grouped together and other objects are added to create larger clusters until all objects in the original dataset are ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required