Ask Your Question
0

Get probability out of svm predict function

asked 2017-09-24 09:01:24 -0600

I have a binary classification and I need to get the probability of a between 0,1 ...how can I do that withpredict function ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-09-24 09:08:46 -0600

berak gravatar image

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);
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-09-24 09:01:24 -0600

Seen: 559 times

Last updated: Sep 24 '17