Learn R Programming

semisupKernelPCA (version 0.1.4)

computeProjectionFromKernel: computeProjectionFromKernel

Description

Compute the kernel PCA projection from an input kernel matrix.

Usage

computeProjectionFromKernel(kernel, dims=2)

Arguments

kernel
n x n kernel matrix
dims
number of output dimensions for the projection. Cannot exceed n.

Value

  • n x dims matrix of the projected data.

References

Bishop, C. M. (2006) Pattern recognition and machine learning. Springer.

See Also

computeStandardKernel

Examples

Run this code
data(iris)
irisdat <- as.matrix(iris[,1:4])
kernel <- computeStandardKernel(irisdat)
proj <- computeProjectionFromKernel(kernel)

Run the code above in your browser using DataLab