Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

for a multi-class SVM, you will label your features like 1,2,3,4,... like in the code above.

for binary SVM's you would label them like 1: expected class, 0: all others. you would also need to train one SVM per class (all with the same data, just with different labels)