function [theta, J_history] = gradientDescent(X, y, theta, alpha, num_iters)
m = length(y);
J_history = zeros(num_iters, 1);
for iter = 1:num_iters
## warning: product: automatic broadcasting operation applied
theta = theta - sum(X .* (X * theta - y))' .* (alpha / (m .* 2));
J_history(iter) = computeCost(X, y, theta);
end
end
这是我的作业,但我不要求你为我做(我实际上认为我已经完成或接近完成)。我已经在手册中提到了广播,但我仍然不明白,为什么我在这里收到警告?