diff --git a/ex1/gradientDescentMulti.m b/ex1/gradientDescentMulti.m index c98315b..d95607b 100644 --- a/ex1/gradientDescentMulti.m +++ b/ex1/gradientDescentMulti.m @@ -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) % ============================================================