Gist 5dca03bb2559fe2fad4c
✓ Published0🌍 Public
Aakeshavan
Last edited Jan 14, 2015
Created on Jan 14, 2015
The example uses a Jupyter notebook with Python to perform leave-one-out cross-validation and permutation testing for partial least squares (PLS) regression models. It defines a PRESS score function and a grid search to select the optimal number of components, then shuffles the response variable to generate a null distribution of PRESS scores. The code relies on scikit-learn's `PLSRegression`, `LeaveOneOut`, and `cross_validation` modules, along with NumPy and SciPy for statistical calculations, to estimate a p-value for the model's predictive performance.
AI-generated description