Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predict.umap

project data points onto an existing umap embedding


Description

project data points onto an existing umap embedding

Usage

## S3 method for class 'umap'
predict(object, data, ...)

Arguments

object

trained object of class umap

data

matrix with data

...

additional arguments (not used)

Value

new matrix

Examples

# embedd iris dataset using default settings
iris.umap = umap(iris[,1:4])

# create a dataset with structure like iris, but with perturbation
iris.perturbed = iris[,1:4] + matrix(rnorm(nrow(iris)*4, 0, 0.1), ncol=4)

# project perturbed dataset
perturbed.embedding = predict(iris.umap, iris.perturbed)

# output is a matrix with embedding coordinates
head(perturbed.embedding)

umap

Uniform Manifold Approximation and Projection

v0.2.7.0
MIT + file LICENSE
Authors
Tomasz Konopka [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.