powered by
Performs parafac factorization via ALS
Parafac(Y, R)
Array of dimension m1*m2*...*mK
Desired rank of the factorization. Defalust is all columns(range=1:R)
list with components
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.
Vector of squared error for the approximation at each iteration (should be non-increasing)
# NOT RUN { A <- array(stats::rnorm(100*10*10), dim=c(100,10,10)) Parafac(A,4) # }
Run the code above in your browser using DataLab