Fast Partition‐Based Cross‐Validation With Centering and Scaling for XTX$$ {\mathbf{X}}^{\mathbf{T}}\mathbf{X} $$ and XTY$$ {\mathbf{X}}^{\mathbf{T}}\mathbf{Y} $$

ABSTRACT We present algorithms that substantially accelerate partition‐based cross‐validation for machine learning models that require matrix products and . Our algorithms have applications in model selection for, for example, principal component analysis (PCA), principal component regression (PCR), ridge regression (RR), ordinary least squares (OLS), and partial least squares (PLS). Our algorithms support all combinations of column‐wise centering and scaling of and , and we demonstrate in our accompanying implementation that this adds only a manageable, practical constant over efficient variants without preprocessing. We prove the correctness of our algorithms under a fold‐based partitioning scheme and show that the running time is independent of the number of folds; that is, they have the same time complexity as that of computing and and space complexity equivalent to storing , and . Importantly, unlike alternatives found in the literature, we avoid data leakage due to preprocessing. We achieve these results by eliminating redundant computations in the overlap between training partitions. Concretely, we show how to manipulate and using only samples from the validation partition to obtain the preprocessed training partition‐wise and . To our knowledge, we are the first to derive correct and efficient cross‐validation algorithms for any of the 16 combinations of column‐wise centering and scaling, for which we also prove only 12 give distinct matrix products.

Authors

Institutions

Publication Details

Journal
Journal of Chemometrics
Published
2025-03-01
DOI
https://doi.org/10.1002/cem.70008
Citations
1
Primary Topic
Spectroscopy and Chemometric Analyses
Type
article
Field-Weighted Citation Impact
0.75

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Fast Partition‐Based Cross‐Validation With Centering and Scaling for XTX$$ {\mathbf{X}}^{\mathbf{T}}\mathbf{X} $$ and XTY$$ {\mathbf{X}}^{\mathbf{T}}\mathbf{Y} $$

Ole‐Christian Galbo Engstrøm
1 citations
Journal of Chemometrics
Spectroscopy and Chemometric Analyses
0.75
article

Fast Partition‐Based Cross‐Validation With Centering and Scaling for XTX$$ {\mathbf{X}}^{\mathbf{T}}\mathbf{X} $$ and XTY$$ {\mathbf{X}}^{\mathbf{T}}\mathbf{Y} $$

Ole‐Christian Galbo Engstrøm
article en
1 citations

Abstract

ABSTRACT We present algorithms that substantially accelerate partition‐based cross‐validation for machine learning models that require matrix products and . Our algorithms have applications in model selection for, for example, principal component analysis (PCA), principal component regression (PCR), ridge regression (RR), ordinary least squares (OLS), and partial least squares (PLS). Our algorithms support all combinations of column‐wise centering and scaling of and , and we demonstrate in our accompanying implementation that this adds only a manageable, practical constant over efficient variants without preprocessing. We prove the correctness of our algorithms under a fold‐based partitioning scheme and show that the running time is independent of the number of folds; that is, they have the same time complexity as that of computing and and space complexity equivalent to storing , and . Importantly, unlike alternatives found in the literature, we avoid data leakage due to preprocessing. We achieve these results by eliminating redundant computations in the overlap between training partitions. Concretely, we show how to manipulate and using only samples from the validation partition to obtain the preprocessed training partition‐wise and . To our knowledge, we are the first to derive correct and efficient cross‐validation algorithms for any of the 16 combinations of column‐wise centering and scaling, for which we also prove only 12 give distinct matrix products.

Journal of ChemometricsVol. 39(3)
University of Copenhagen (DK)
Innovationsfonden
Openalex Percentile: Top 35%
Spectroscopy and Chemometric Analyses
0.75
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Fast Partition‐Based Cross‐Validation With Centering and Scaling for XTX$ {\mathbf{X}}^{\mathbf{T}}\mathbf{X} $ and XTY$ {\mathbf{X}}^{\mathbf{T}}\mathbf{Y} $ — Ole‐Christian Galbo Engstrøm · Journal of Chemometrics (2025) | TGRS Research Map | TGRS