liveBook · Manning

UMAP

As explained in Build AI Drug Discovery Pipelines

Uniform manifold approximation and projection is a nonlinear dimensionality-reduction technique for embedding high-dimensional data in a lower-dimensional space.

UMAP is a nonlinear dimensionality-reduction technique for embedding high-dimensional data in a lower-dimensional space. It uses manifold learning to preserve meaningful local relationships when the data’s structure is nonlinear. section 7.1.4

The central contrast with PCA is structural:

  • PCA assumes important patterns lie on a linear manifold, such as a plane or line. section 7.1.4
  • UMAP can represent nonlinear geometry, such as unrolling the curved Swiss roll while retaining local relationships. section 7.1.4
  • It calculates high-dimensional distances, converts them into similarity scores, and moves low-dimensional points closer or farther apart. section 7.1.4

COVID Moonshot compound screening

A Python pipeline applies UMAP with Jaccard distance and two components to molecular fingerprints, then feeds the projection into a five-neighbor classifier. Grid search tunes n_neighbors and min_dist using three-fold cross-validation and micro-averaged F1. section 7.1.4

Figure 7.6 UMAP develops an understanding of local relationships by calculating the distances between each pair of points in high-dimensional space, and using these as the basis for high-dimensional similarity scores that are used to move low-dimensional projects of the points closer or further from one another.

Shows how pairwise high-dimensional distances become similarity scores that guide the low-dimensional projection. section 7.1.4

How Build AI Drug Discovery Pipelines covers it

How deep it goes
Explains manifolds, contrasts UMAP with PCA on Swiss roll data, and demonstrates a tuned projection-classification pipeline.
Examples
Uses Swiss roll geometry and COVID Moonshot molecular fingerprints projected by activity and chemical series.
What it assumes
Builds from PCA while defining the manifold assumption and illustrating it geometrically with accessible examples.
What you can do after
Apply it via umap-learn and scikit-learn pipelines, tuning neighborhood and separation parameters with cross-validation.
How it connects
Connects manifold learning with PCA, self-organizing maps, molecular fingerprints, nearest-neighbor classification, and cross-validation.

Also explained in

Compare how 5 books explain UMAP →

Related concepts

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.