Skip to content

FloDR

FloDR is a dimensionality reduction method built on an invertible normalising flow. The first n_components coordinates of the flow are the map and the rest are a residual, so the fitted map has an exact inverse and an exact density. It follows the scikit-learn estimator interface, like UMAP.

60,000 Fashion-MNIST images on a FloDR map, and images decoded on a grid over it

60,000 Fashion-MNIST images on the map (left), and the map decoded back to images on a grid over it (right). The examples show more.

from flodr import FloDR
model = FloDR(random_state=0).fit(X)
Y = model.embedding_
fit, fit_transformthe map of the training points
transform, transform_optplace new points
inverse_transform, inverse_latentdecode positions and latents back to the input
score_samplesthe log density of points
coverage_certificate, energy_certificatetest the density on held-out points
flodr.auditwhat the map hides about a label
flodr.vizthe plots of the paper

Start with Installation and the Quickstart.