skIncrPCA {BiocSklearn} | R Documentation

## use sklearn IncrementalPCA procedure

### Description

use sklearn IncrementalPCA procedure

### Usage

    skIncrPCA(mat, n_components, batch_size)

### Arguments

`mat` | a matrix – can be R matrix or numpy.ndarray
`n_components` | number of PCA to retrieve
`batch_size` | number of records to use at each iteration

### Value

matrix with rotation

### Examples

    irloc = system.file("csv/iris.csv", package="BiocSklearn")
    irismat = SklearnEls()$np$genfromtxt(irloc, delimiter=',')
    ski = skIncrPCA(irismat)
    ski25 = skIncrPCA(irismat, batch_size=25L) # non-default
    getTransformed(ski)[1:3,]
    getTransformed(ski25)[1:3,]

[Package BiocSklearn version 1.6.0 Index]