Skip to content

cpfa

Classification with Parallel Factor Analysis

v1.2-7 · Mar 29, 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>. Principal component analysis (PCA) is also supported for a two-way data matrix. 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. 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. Implements parallel computing via the 'parallel', 'doParallel', and 'doRNG' packages.

Downloads

818

Last 30 days

4357th

2.5K

Last 90 days

8.9K

Last year

Trend: -8.7% (30d vs prior 30d)

CRAN Check Status

1 ERROR
13 OK
Show all 14 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-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 ERROR
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 details (1 non-OK)
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 diagnostics:
LaTeX failed to compile D:/RCompile/CRANpkg/local/4.4/cpfa.Rcheck/vign_test/cpfa/vignettes/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

Check History

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 cpfa

Version History

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
updated 1.1-6 ← 1.1-5 diff Oct 31, 2024
updated 1.1-5 ← 1.1-4 diff Sep 30, 2024
updated 1.1-4 ← 1.1-3 diff Apr 25, 2024
updated 1.1-3 ← 1.1-2 diff Apr 6, 2024
updated 1.1-2 ← 1.1-1 diff Feb 14, 2024
updated 1.1-1 ← 1.1-0 diff Feb 2, 2024
updated 1.1-0 ← 1.0-9 diff Dec 1, 2023
updated 1.0-9 ← 1.0-8 diff Nov 18, 2023