Skip to content

Commit db10914

Browse files
author
Merouane Atig
committed
Cofi cost function
1 parent 1c6223c commit db10914

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

mlclass-ex8/cofiCostFunc.m

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,7 @@
4040
% partial derivatives w.r.t. to each element of Theta
4141
%
4242

43-
44-
45-
46-
47-
48-
49-
50-
51-
52-
53-
54-
55-
56-
43+
J = 1 / 2 * sum(sum(R .* (X * Theta' - Y) .^ 2));
5744

5845
% =============================================================
5946

0 commit comments

Comments
 (0)