SVM can't return distances when flag returnDFVal is true for more than 2 classes, why? (Bug #833)


Added by Bruno Nascimento about 14 years ago. Updated about 14 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:Maria Dimashova % Done:

0%

Category:ml
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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

Also available in: Atom PDF