SVM can't return distances when flag returnDFVal is true for more than 2 classes, why? (Bug #833)
Description
SVM can't return distances when flag returnDFVal is true for more than 2 classes, why?
line: 2063 of svm.cpp
result = returnDFVal && class_count == 2 ? (float)sum : (float)(class_labels->data.i[k]);
History
Updated by Vadim Pisarevsky about 14 years ago
the current implementation of multi-class SVM runs n*(n-1)/2 2-class SVM's and counts the winners. The class that wins most often, is returned as the result. That is, the output of multi-class SVM is always a discrete value - the class index.
- Status changed from Open to Done
- (deleted custom field) set to wontfix