This commit is contained in:
Joakim Skogholt 2024-04-25 17:28:36 +02:00
parent 82e2cd4496
commit 5464f1e338

View file

@ -531,8 +531,6 @@ K-fold CV for the Ridge regression problem, using the 'SVD-trick' for calculatin
""" """
function TRSegCVUpdateFair(X, y, lambdas, cv, bOld) function TRSegCVUpdateFair(X, y, lambdas, cv, bOld)
cv = cvfolds
n, p = size(X); n, p = size(X);
rmsecvman = zeros(length(lambdasu)); rmsecvman = zeros(length(lambdasu));
nfolds = length(unique(cv)); nfolds = length(unique(cv));