powered by
Calculate the variance explained of a PARAFAC model, per component
calcVarExpPerComponent(Fac, X)
Vector of scalars of the percentage of variation explained per component
Fac object output of a model
Input dataset
X = array(rnorm(108*100*10), c(108,100,10)) model = parafac(X, 2) calcVarExpPerComponent(model$Fac, X)
Run the code above in your browser using DataLab