Learn R Programming

⚠️There's a newer version (0.2.10.0) of this package.Take me there.

umap (version 0.2.4.1)

Uniform Manifold Approximation and Projection

Description

Uniform manifold approximation and projection is a technique for dimension reduction. The algorithm was described by McInnes and Healy (2018) in . This package provides an interface for two implementations. One is written from scratch, including components for nearest-neighbor search and for embedding. The second implementation is a wrapper for 'python' package 'umap-learn' (requires separate installation, see vignette for more details).

Copy Link

Version

Install

install.packages('umap')

Monthly Downloads

10,552

Version

0.2.4.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Tomasz Konopka

Last Published

January 8th, 2020

Functions in umap (0.2.4.1)

check.learn.available

check whether python module is available, abort if not
knn.from.data

get information about approximate k nearest neighbors from a data matrix
add.coo

Add two coo objects element-wise
coo

Create a coo representation of a square matrix
center.embedding

Adjust a matrix so that each column is centered around zero
dCenteredPearson

compute pearson correlation distance between two vectors
coo2mat

Convert from coo object into conventional matrix
make.initial.embedding

Create an initial embedding for a graph
find.ab.params

Estimate a/b parameters
get.global.seed

lookup .Random.seed in global environment
knn.from.data.reps

Repeat knn.from.data multiple times, pick the best neighbors
knn.from.dist

get information about k nearest neighbors from a distance object or from a matrix with distances
check.coo

Check class for coo
make.random.embedding

Make an initial embedding with random coordinates
dManhattan

compute Manhattan distance between two vectors
make.initial.spectator.embedding

Create an initial embedding for a set of spectators
naive.simplicial.set.embedding

create an embedding of graph into a low-dimensional space
detect.umap.learn

adjust config depending on umap-learn version
naive.optimize.embedding

modify an existing embedding
smooth.knn.dist

compute a "smooth" distance to the kth neighbor and approximate first neighbor
set.global.seed

set .Random.seed to a pre-saved value
dCosine

compute cosine dissimilarity between two vectors
naive.fuzzy.simplicial.set

create a simplicial set from a distance object
make.spectral.embedding

Create a spectral embedding for a connectivity graph
spectator.knn.info

compute knn information for spectators relative to data
optimize_embedding

run a series of epochs of the umap optimization
dEuclidean

compute Euclidean distance between two vectors
spectral.eigenvectors

get a set of k eigenvectors for the laplacian of x
mdCosine

compute cosine distances
mdCenteredPearson

compute pearson correlation distances
optimize_epoch

run one epoch of the umap optimization
umap.check.config.class

Validator for config class component
t.coo

Transpose a coo matrix
umap.check.config

Validator functions for umap settings
umap.prep.input

Prep primary input as a data matrix
make.coo

Helper to construct coo objects
umap.small

Create an embedding object compatible with package umap for very small inputs
umap

Computes a manifold approximation and projection
knn.info

Compute knn information
predict.umap

project data points onto an existing umap embedding
stop.coo

Stop execution with a custom message
mdEuclidean

compute Euclidean distances
umap.error

stop execution with a custom error message
print.umap.config

Display contents of a umap configuration
laplacian.coo

Construct a normalized Laplacian for a graph
print.umap

Display a summary of a umap object
umap.defaults

Default configuration for umap
mdManhattan

compute Manhattan distances
subset.coo

Subset a coo
message.w.date

Send a message() with a prefix with a data
umap.learn

Create a umap embedding using python package umap-learn
make.epochs.per.sample

Compute a value to capture how often each item contributes to layout optimization
multiply.coo

Multiply two coo objects element-wise
print.umap.knn

Display summary of knn.info
umap.learn.predict

predict embedding of new data given an existing umap object
umap.warning

create a warning message
reduce.coo

Remove some entires in a coo matrix where values are zero
umap.naive

Create a umap embedding
umap.naive.predict

predict embedding of new data given an existing umap object
clip4

perform a compound transformation on a vector, including clipping
check.compatible.coo

Check that two coo objects are compatible for addition, multiplication
concomp.coo

Count the number of connected components in a coo graph
clip

Force (clip) a value into a finite range
column.seeds

deterministically produce random-like integers for each column in a dataset
identity.coo

Construct an identity matrix