1
0
Fork 0

Use lambda=1 for regularizing the polynomial fit

master
neingeist 10 years ago
parent 717ea8c788
commit 3751214442

@ -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