for linear regression has only one global, and no other local
and in octave ,you can use
theta = theta - alpha*(((X*theta-y)'*X)./m)';
and theta is a colume vector ,X is [x1 ,x2,x3...] y is a colume vector
for linear regression has only one global, and no other local
and in octave ,you can use
theta = theta - alpha*(((X*theta-y)'*X)./m)';
and theta is a colume vector ,X is [x1 ,x2,x3...] y is a colume vector