1
0
Fork 0

Use lambda=1 for regularizing the polynomial fit

This commit is contained in:
neingeist 2014-11-06 12:23:09 +01:00
parent 717ea8c788
commit 3751214442

View file

@ -164,7 +164,7 @@ pause;
% lambda to see how the fit and learning curve change.
%
lambda = 0;
lambda = 1;
[theta] = trainLinearReg(X_poly, y, lambda);
% Plot training data and fit