Included constant term in oldregcoeffs
This commit is contained in:
parent
79657c58e0
commit
c92b9c1186
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ function oldRegCoeffs(X, y, cvfolds, ncomps, regFunction=bidiag2) # bidiag2 OR P
|
||||||
regCoeffsInds = findfirst(cverror .< (minimum(cverror) + std(cverror)/sqrt(length(unique(cvfolds)))))[1] # 1 S.E. rule
|
regCoeffsInds = findfirst(cverror .< (minimum(cverror) + std(cverror)/sqrt(length(unique(cvfolds)))))[1] # 1 S.E. rule
|
||||||
|
|
||||||
betas, _ = regFunction(X, y, ncomps)
|
betas, _ = regFunction(X, y, ncomps)
|
||||||
bold = betas[2:end, regCoeffsInds]
|
bold = betas[:, regCoeffsInds]
|
||||||
|
|
||||||
return bold, regCoeffsInds, cverror
|
return bold, regCoeffsInds, cverror
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue