ds: done
This commit is contained in:
@ -90,8 +90,10 @@ initial_theta = zeros(size(X, 2), 1);
|
||||
lambda = 1;
|
||||
|
||||
% Set Options
|
||||
|
||||
options = optimset('GradObj', 'on', 'MaxIter', 400);
|
||||
|
||||
%Function Minimum Unconstrained
|
||||
[theta, J, exit_flag] = ...
|
||||
fminunc(@(t)(costFunction(t, X, y)), initial_theta, options);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user