diff --git a/mlclass-ex3/predictOneVsAll.m b/mlclass-ex3/predictOneVsAll.m index 8b02a6c..9e4f46c 100644 --- a/mlclass-ex3/predictOneVsAll.m +++ b/mlclass-ex3/predictOneVsAll.m @@ -27,7 +27,7 @@ % % train each row for all classes and keep the label with the highest probability -htheta = X * all_theta'; +htheta = sigmoid (X * all_theta'); [temp, p] = max(htheta, [], 2); % =========================================================================