[~,~,P] = svmpredict(x,y,model,'-b 1');
The output P
is the probability of y
belongs to class 1
and -1
respectively (m*2
array), and it only makes sense for classification problem.
For regression problem, the pairwise probability information is included in your trained model with model.ProbA
.