Skip to content

cpfa

Classification with Parallel Factor Analysis

v1.3.0 · Jun 2, 2026 · GPL (>= 2)

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

13 OK
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
ERROR r-oldrel-windows-x86_64

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
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies multiway glmnet e1071 randomForest nnet rda xgboost foreach doParallel doRNG clue cpfa

Version History

32 tracked
updated 1.3.0 ← 1.2-9 diff Jun 2, 2026
updated 1.2-9 ← 1.2-8 diff May 8, 2026
updated 1.2-8 ← 1.2-7 diff Apr 13, 2026
updated 1.2-7 ← 1.2-6 diff Mar 29, 2026
new 1.2-6 Mar 10, 2026
updated 1.2-6 ← 1.2-5 diff Feb 5, 2026
updated 1.2-5 ← 1.2-4 diff Jan 14, 2026
updated 1.2-4 ← 1.2-3 diff Dec 14, 2025
updated 1.2-3 ← 1.2-2 diff Nov 1, 2025
updated 1.2-2 ← 1.2-1 diff Oct 18, 2025
updated 1.2-1 ← 1.2-0 diff Jul 7, 2025
updated 1.2-0 ← 1.1-9 diff Jun 10, 2025
updated 1.1-9 ← 1.1-8 diff May 22, 2025
updated 1.1-8 ← 1.1-7 diff Apr 14, 2025
updated 1.1-7 ← 1.1-6 diff Feb 22, 2025