Parafac: Performs parafac factorization via ALS

Description Usage Arguments Value Examples

View source: R/Parafac.R

Description

Performs parafac factorization via ALS

Usage

1
Parafac(Y, R)

Arguments

Y

Array of dimension m1*m2*...*mK

R

Desired rank of the factorization. Defalust is all columns(range=1:R)

Value

list with components

U:

List of basis vectors for parafac factorization, U[k]: mk*R for k=1,...,K. Columns of U[K] have norm 1 for k>1.

SqError:

Vector of squared error for the approximation at each iteration (should be non-increasing)

Examples

1
2
A <- array(stats::rnorm(100*10*10), dim=c(100,10,10))
Parafac(A,4)

SuperPCA documentation built on July 26, 2021, 5:06 p.m.

Related to Parafac in SuperPCA...