arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2401.13185cs.LGcs.DS
收藏

基于分区的快速交叉验证:带中心化和缩放处理的 $\mathbf{X}^\mathbf{T}\mathbf{X}$ 与 $\mathbf{X}^\mathbf{T}\mathbf{Y}$

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

FOSS Analytical A/S(福斯分析公司);University of Copenhagen(哥本哈根大学)

Ole-Christian Galbo Engstrøm, Martin Holm Jensen

AI总结:

提出加速基于分区的交叉验证算法,适用于需矩阵乘积的模型,支持中心化和缩放,时间复杂度与折数无关,避免数据泄漏。

摘要:

我们提出了能够显著加速基于分区的交叉验证的算法,这些算法适用于需要矩阵乘积 $\mathbf{X}^\mathbf{T}\mathbf{X}$ 和 $mathbf{X}^\mathbf{T}\mathbf{Y}$ 的机器学习模型。我们的算法在模型选择中具有应用,例如主成分分析(PCA)、主成分回归(PCR)、岭回归(RR)、普通最小二乘法(OLS)和偏最小二乘法(PLS)。我们的算法支持对 $\mathbf{X}$ 和 $mathbf{Y}$ 进行逐列中心化和缩放的所有组合,并且我们在随附的实现中证明,与没有预处理的变体相比,这仅增加了可控的实际常数开销。我们在基于折的分区方案下证明了算法的正确性,并表明运行时间与折数无关;也就是说,它们与计算 $\mathbf{X}^\mathbf{T}\mathbf{X}$ 和 $mathbf{X}^\mathbf{T}\mathbf{Y}$ 具有相同的时间复杂度,并且空间复杂度等同于存储 $\mathbf{X}$、$\mathbf{Y}$、$\mathbf{X}^\mathbf{T}\mathbf{X}$ 和 $mathbf{X}^\mathbf{T}\mathbf{Y}$。重要的是,与文献中的替代方法不同,我们避免了因预处理而导致的数据泄漏。我们通过消除训练分区重叠部分中的冗余计算来实现这些结果。具体来说,我们展示了如何仅使用验证分区中的样本来操作 $\mathbf{X}^\mathbf{T}\mathbf{X}$ 和 $mathbf{X}^\mathbf{T}\mathbf{Y}$,以获得经过预处理的训练分区级的 $\mathbf{X}^\mathbf{T}\mathbf{X}$ 和 $mathbf{X}^\mathbf{T}\mathbf{Y}$。据我们所知,我们是首个为逐列中心化和缩放的 $16$ 种组合中的任何一种推导出正确且高效的交叉验证算法的,并且我们还证明了其中只有 $12$ 种组合产生不同的矩阵乘积。

英文摘要:

We present algorithms that substantially accelerate partition-based cross-validation for machine learning models that require matrix products $\mathbf{X}^\mathbf{T}\mathbf{X}$ and $\mathbf{X}^\mathbf{T}\mathbf{Y}$. 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 $\mathbf{X}$ and $\mathbf{Y}$, 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 $\mathbf{X}^\mathbf{T}\mathbf{X}$ and $\mathbf{X}^\mathbf{T}\mathbf{Y}$ and space complexity equivalent to storing $\mathbf{X}$, $\mathbf{Y}$, $\mathbf{X}^\mathbf{T}\mathbf{X}$, and $\mathbf{X}^\mathbf{T}\mathbf{Y}$. 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 $\mathbf{X}^\mathbf{T}\mathbf{X}$ and $\mathbf{X}^\mathbf{T}\mathbf{Y}$ using only samples from the validation partition to obtain the preprocessed training partition-wise $\mathbf{X}^\mathbf{T}\mathbf{X}$ and $\mathbf{X}^\mathbf{T}\mathbf{Y}$. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑