skIncrPCA: use sklearn IncrementalPCA procedure

View source: R/skIPCA.R

skIncrPCAR Documentation

use sklearn IncrementalPCA procedure

Description

use sklearn IncrementalPCA procedure

Usage

skIncrPCA(mat, n_components = 2L, batch_size = 5L, ...)

Arguments

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

Value

matrix with rotation

Examples

dem = skIncrPCA(iris[,1:4], batch_size=25L)
dem2 = skIncrPCA(iris[,1:4], batch_size=25L, n_components=2L)
dem
dem2

vjcitn/BiocSklearn documentation built on Aug. 30, 2024, 2:13 p.m.