Fixed embarrasing bug in regularizationMatrix
This commit is contained in:
parent
ad235d7913
commit
e0f2f92138
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ elseif regType == "legendre"
|
|||
P, _ = plegendre(regParam1-1, p);
|
||||
regMat[end-regParam1+1:end,:] = sqrt(regParam2) * P;
|
||||
elseif regType == "L2"
|
||||
regMat = I(size(X,2));
|
||||
regMat = I(p);
|
||||
elseif regType == "std"
|
||||
regMat = regParam2;
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue