Skip to content

Commit

Permalink
ex2 predict
Browse files Browse the repository at this point in the history
  • Loading branch information
hcfw007 committed Apr 21, 2019
1 parent a1b09b9 commit ae6c2dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions machine-learning-ex2/ex2/predict.m
Expand Up @@ -16,6 +16,10 @@
%


h = sigmoid(X * theta);

p(find(h > 0.5)) = 1;
p(find(h < 0.5)) = 0;



Expand Down

0 comments on commit ae6c2dc

Please sign in to comment.