
Drop the per-sample PC scores from a fitted PCA before serialisation
Source:R/cubist_baseline.R
dot-strip_pca_scores.Rdpca$scores holds the 120 PC scores of every OSSL training sample and
.reconstruct_pca() inverts them back to the input spectra at ~99.98%
of the variance. Only the projection basis (rotation/center/scale) is needed
at inference time — .project_pca() never reads scores.
Arguments
- pca
A list from
.fit_pca()