Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you cannot get the probability in [0..1], but you can get the distance to the margin with:

svm->predict(query, result, ml::StatModel::RAW_OUTPUT);