lol hardcoding variable
This commit is contained in:
parent
c92b9c1186
commit
76150c499d
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@
|
||||||
Calculates "old" regression coefficients using CV and the 1 S.E. rule.
|
Calculates "old" regression coefficients using CV and the 1 S.E. rule.
|
||||||
"""
|
"""
|
||||||
function oldRegCoeffs(X, y, cvfolds, ncomps, regFunction=bidiag2) # bidiag2 OR PCR
|
function oldRegCoeffs(X, y, cvfolds, ncomps, regFunction=bidiag2) # bidiag2 OR PCR
|
||||||
cverror = zeros(20,1);
|
cverror = zeros(ncomps,1);
|
||||||
|
|
||||||
for i=1:length(unique(cvfolds))
|
for i=1:length(unique(cvfolds))
|
||||||
Xtrain = X[vec(i .!= cvfolds), :];
|
Xtrain = X[vec(i .!= cvfolds), :];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue