Skip to contents

pca$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.

Usage

.strip_pca_scores(pca)

Arguments

pca

A list from .fit_pca()

Value

The same list with scores replaced by a row count