Trending

World technology news

→
Scatter plot of Gaussian samples and two principal component axes
CRAN ProjectionBasedClusteringIn-depth report

ProjectionBasedClustering 1.3.0 adds densMAP to R software

The November 28 release adds an R interface to density-preserving densMAP and confidence intervals for PCA eigenvalues.

·CRAN ProjectionBasedClustering
Reading progress0%

The R package adds a densMAP interface

ProjectionBasedClustering 1.3.0 reached CRAN on November 28 at 14:00:08 UTC, or 17:00:08 in Istanbul. The independent CRANberries comparison with 1.2.2 records new densMAP and PCA eigenvalue files. The densMAP interface takes a data matrix or precomputed distances and returns a point for each observation in the projection. A separate option exposes the local radii in the original and projected spaces. The new package interface makes those values available alongside the coordinates for a visual analysis in R.

Local radii and the density impression

A low dimensional plot can make a sparse region look like a compact group. The original densMAP research extends UMAP with an objective that aims to preserve relative differences in local density. Set OutputDens to include logarithms of the local radii before and after projection. Larger radii indicate lower local density around an observation. Those numbers should be interpreted with the selected distance and neighbourhood settings. A visually separated group still requires independent evidence before it is described as a class in the source data.

Reproduce the Python environment

The new interface delegates computation to the Python umap-learn implementation through the optional R package reticulate. It expects umap-learn version 0.5 or later and does not install its dependencies. If the Python environment is unavailable, the returned list includes a diagnostic and no projection coordinates. Record both package versions and the selected Python interpreter when comparing runs. The source notes explain that setting the random seed in R alone does not seed the Python optimiser. Assign the backend seed and log the relevant settings.

A separate PCA eigenvalue calculation

The Eigen_ci4pca function takes strictly positive eigenvalues and a sample size greater than two. It returns the supplied values with lower and upper confidence limits based on a log-normal approximation. Its default error rate is 0.05. Record whether the PCA used centring or scaling before comparing results between datasets. If the matrix produces a zero eigenvalue, decide how to handle it explicitly because the function requires positive inputs. The confidence limits address uncertainty around PCA eigenvalues and have a different interpretation from densMAP local radii.

Compare two projections on the same observations

For a practical review, run standard UMAP and densMAP on the same rows with a consistent preprocessing method. Keep row identifiers so that workers can trace which observations move between the two plots. Examine the correspondence between original and projected radii as well as the appearance of any group. Show the settings with each figure. Keep the PCA confidence interval calculation in a separate result record if it is needed. The release gives R users access to these tools while leaving the analysis choices in their own workflow.

Archive photo · Nicoguaro / Wikimedia Commons ↗ · CC BY 4.0 · Illustrative PCA plot, independent of the new densMAP output. Converted to WebP.

Sources and verification
Be the first reader ✎ Write a comment

Reader discussion

Discussion prompt

Which bottleneck would you expect as this solution scales?

No comments yet. Be the first to contribute.

Write a comment

Comments are real visitor contributions. Repeated, link-heavy or abusive submissions may be limited.