skIncrPCA | R Documentation |
use sklearn IncrementalPCA procedure
skIncrPCA(mat, n_components = 2L, batch_size = 5L, ...)
mat |
a matrix – can be R matrix or numpy.ndarray, if the latter it must be set up in a basilisk persistent environment, and that is not currently demonstrated for this package. |
n_components |
number of PCA to retrieve |
batch_size |
number of records to use at each iteration |
... |
passed to python IncrementalPCA |
matrix with rotation
dem = skIncrPCA(iris[,1:4], batch_size=25L)
dem2 = skIncrPCA(iris[,1:4], batch_size=25L, n_components=2L)
dem
dem2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.