Skip to content

Commit

Permalink
fixed: print X while testing
Browse files Browse the repository at this point in the history
  • Loading branch information
vasnake committed Apr 2, 2014
1 parent c264c40 commit 1df86f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ex2/test_costfunction_forums.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function test_costfunction_forums ()
% Me - non-square matrix example
% I HAVE NOT VALIDATE THIS BY HAND
% https://class.coursera.org/ml-005/forum/thread?thread_id=943#comment-3379
X = magic(3)(1:2,:)
X = magic(3)(1:2,:);
[J grad] = costFunction([1 2 3]', X, [4 5]');
assert( J, -109.928408, epsilon);
assert( grad, [-18.000 -11.500 -23.000]', 1e-2);
Expand Down

0 comments on commit 1df86f1

Please sign in to comment.