skPCA | R Documentation |
use sklearn PCA procedure
skPCA(mat, ...)
mat |
a matrix – can be R matrix or numpy.ndarray |
... |
additional parameters passed to sklearn.decomposition.PCA, for additional information use |
matrix with rotation
If no additional arguments are passed, all defaults are used.
#irloc = system.file("csv/iris.csv", package="BiocSklearn")
#irismat = SklearnEls()$np$genfromtxt(irloc, delimiter=',')
#skpi = skPCA(irismat)
#getTransformed(skpi)[1:5,]
chk = skPCA(data.matrix(iris[,1:4]))
chk
head(getTransformed(chk))
head(prcomp(data.matrix(iris[,1:4]))$x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.