cpfa
Classification with Parallel Factor Analysis
Description
Classification using Richard A. Harshman's Parallel Factor Analysis-1 (Parafac) model or Parallel Factor Analysis-2 (Parafac2) model fit to a three-way or four-way data array. See Harshman and Lundy (1994): <doi:10.1016/0167-9473(94)90132-5>. Classification using principal component analysis (PCA) fit to a two-way data matrix is also supported. Uses component weights from one mode of a Parafac, Parafac2, or PCA model as features to tune parameters for one or more classification methods via a k-fold cross-validation procedure. Allows for constraints on different tensor modes. Allows for inclusion of additional features alongside features generated by the component model. Supports penalized logistic regression, support vector machine, random forest, feed-forward neural network, regularized discriminant analysis, and gradient boosting machine. Supports binary and multiclass classification. Predicts class labels or class probabilities and calculates multiple classification performance measures. Uses the 'clue' package to align Parafac or Parafac2 models across data splits in the cross-validation procedure. Calculates classification importance of individual features using permutation feature importance. Implements parallel computing via the 'foreach', 'doParallel', and 'doRNG' packages.
Downloads
772
Last 30 days
4296th
2.3K
Last 90 days
9.1K
Last year
Trend: +3.5% (30d vs prior 30d)
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check History
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 15, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 30, 2026
re-building of vignette outputs
Error(s) in re-building vignettes: --- re-building 'cpfa.Rmd' using rmarkdown ! Package pdftex.def Error: File `6a3c8204a200e1f09e714ef3055cb0b53f0a96ce.pdf' not found: using draft setting. Error: processing vignette 'cpfa.Rmd' failed with diagnost ...[truncated]... /cpfa.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See cpfa.log for more info. --- failed re-building 'cpfa.Rmd' SUMMARY: processing the following file failed: 'cpfa.Rmd' Error: Vignette re-building failed. Execution halted