I copied the code from Multi-class classification in libsvm to get the probability estimates for each class.
However, I have an error in that my probability estimates p only has one column when there should be two columns. I checked my model and it states there are two classes (model.nr_class = 2) and (model.Label = [0;1]).
Can someone explain?
My probability estimates range from -0.35 to 1.2057 so they are not between 0 and 1. Giving the option -b 0 and -b 1 returns the same result.