Skip to content

Commit

Permalink
week 4 finish
Browse files Browse the repository at this point in the history
  • Loading branch information
szihs committed Jan 20, 2018
1 parent 886a122 commit 35ee1a0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
Binary file added Assignments/machine-learning-ex2/ex2/token.mat
Binary file not shown.
8 changes: 6 additions & 2 deletions Assignments/machine-learning-ex3/ex3/predict.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@
% information see 'help max'. If your examples are in rows, then, you
% can use max(A, [], 2) to obtain the max for each row.
%


X = [ ones(m,1) X];
z2 = sigmoid(X*(Theta1'));
m = size(z2, 1);
z2 = [ones(m,1) z2];
z3 = sigmoid(z2*(Theta2'));
[l p] = max(z3, [], 2);



Expand Down
Binary file added Assignments/machine-learning-ex3/ex3/token.mat
Binary file not shown.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# MachineLearning

0 comments on commit 35ee1a0

Please sign in to comment.