Vote count:
0
The multivariate linear regression cost function:is here Is the following code in Matlab correct?
function J = computeCostMulti(X, y, theta)
m = length(y);
J = 0;
J=(1/(2*m)*(X*theta-y)'*(X*theta-y);
end
asked 46 secs ago
Cost function for linear regression with multiple variables in Matlab
Aucun commentaire:
Enregistrer un commentaire