https://github.com/anirudhjayaraman/Machine-Learning/blob/348fa773c2a7fa56c76d71645c15d9e6840a8be4/Andrew%20Ng%20Stanford%20Coursera/Week%2004/ex3/predictOneVsAll.m#L35 Hey shouldn't this be the sigmoid fn ... logistic regression vs linear? [~,p]=max(sigmoid(X*all_theta'),[],2);