Description Usage Arguments Value Examples
project data points onto an existing umap embedding
1 2 |
object |
trained object of class umap |
data |
matrix with data |
... |
additional arguments (not used) |
new matrix
1 2 3 4 5 6 7 8 9 10 11 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.