1
0
Fork 0

Gradient descent for multiple features

master
neingeist 10 years ago
parent 3dc8897634
commit ad9ab582de

@ -17,7 +17,9 @@ for iter = 1:num_iters
% of the cost function (computeCostMulti) and gradient here.
%
theta = theta - (alpha/m) * X' * (X*theta - y);
J = computeCostMulti(X, y, theta)
% ============================================================