Hierarchical clustering organizes compounds into nested groups by repeatedly merging similar clusters or splitting larger clusters. Agglomerative clustering begins with one cluster per compound and merges the closest clusters until one hierarchy remains; divisive clustering starts with all compounds together and splits them. For molecular libraries, representations, distance metrics, clustering choices, and sampling goals must be considered together. A practical default uses Morgan fingerprints with Tanimoto distance (1 minus similarity), while linkage choices include single, complete, average, and Ward’s method. section 7.2.3
Hierarchical clustering
Hierarchical clustering is a clustering technique that builds a hierarchy of nested groups by iteratively merging or splitting clusters.
How Build AI Drug Discovery Pipelines covers it
- How deep it goes
- Explains agglomerative and divisive procedures, linkage choices, fingerprint implementation, dendrograms, and sampling, but not clustering theory in depth.
- Examples
- Uses RDKit fingerprints, scikit-learn models, dendrograms, representative sampling, and diversity-versus-redundancy evaluation.
- What it assumes
- Assumes molecules can be represented as fingerprints and compared by similarity, while defining clustering terminology before implementation.
- What you can do after
- Apply it via RDKit and scikit-learn to cluster compounds and sample representatives for library screening.
- How it connects
- Connects molecular fingerprints, Tanimoto similarity, linkage methods, dendrograms, cluster sampling, and Taylor-Butina clustering.
Also explained in
-
Data Without LabelsHierarchical clustering is a clustering method that constructs a nested hierarchy of groups by successively merging or splitting clusters.
-
Statistics Slam DunkHierarchical clustering is a clustering method that builds a nested hierarchy of groups based on similarity or distance.
-
Build a Robo-Advisor with Python (From Scratch)Hierarchical clustering is a clustering technique that organizes objects into progressively combined or subdivided groups according to a distance measure.
-
Advanced Algorithms and Data StructuresHierarchical clustering is a clustering technique that forms nested groups by successively merging or dividing clusters.
-
Domain-Specific Small Language ModelsA clustering approach that builds communities through repeated refinement and aggregation of grouped items.
-
Grokking Machine Learning, Second EditionHierarchical clustering is a clustering algorithm that progressively groups the closest data points or existing groups into a hierarchy.
-
Timeless Algorithms, The Foundational IdeasHierarchical clustering constructs nested groups by successively merging or splitting clusters.
Compare how 8 books explain hierarchical clustering →
Related concepts
- K-means clusteringcontrasts with · K-means clustering is an algorithm that partitions data into a specified number of clusters by iteratively assigning observations to the nearest centroid and updating each centroid to the mean of its assigned observations.
- OPTICSincludes · OPTICS is a density-based clustering algorithm that orders points and computes reachability distances to reveal cluster structure across varying density thresholds.
- unsupervised learningkind of · Unsupervised learning is a machine-learning approach that discovers patterns, structure, or representations in data without labeled target outputs.
- clusteringkind of · Clustering is the process of grouping data items so that items within a group are more similar to one another than to items in other groups.
- agglomerative clusteringincludes · Agglomerative clustering is a bottom-up hierarchical clustering method that starts with individual items as separate clusters and repeatedly merges clusters according to a linkage criterion.
- dendrogramproduces · A dendrogram is a tree diagram that represents hierarchical relationships among items or nested clusters, including the levels at which they merge or split.
This explainer was generated by Manning's knowledge graph from the text of Build AI Drug Discovery Pipelines. The section links point to the parts of the book it draws on.







