-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: support one-class svm pridict probability #67
Comments
We don't have that yet.. You can use decision values to get
|
decision values are always the same, I need to know every predict data probability result . |
Hi, Please consider, Thanks |
Hi, See Line 2577 in 3648ef3
|
Any new methods? |
You can use Platt Scalling to create a probability distribution from the outputs of your one-class SVM. Essentially, it fits a logistic regression model with cross-validation on your one-class SVM predictions to get the probability values you would normally get with the Let
|
@mattsliv, sorry to dig this thread up but did you implement that approach you have written above? I tried to take a similar approach in R but it would appear the cross-validated logistic regression model applied to the results of the one-class svm separates the data perfectly so I get probabilities extremely close to 0 or 1. I have a stackoverflow post showing a nice visual of my issue. |
@Al-Murphy If the probabilities values are very close to 0 or 1, it could mean that the variance of error of your classification is very low. With reference to the image in your StackOverflow post, this might be the case since your actual data is easily separable. Maybe try it on data that has some higher error variance? I would like to note though, the project I was using this for changed and is not needed so I have not been using this on various amounts of data.
|
Sad to see this useful feature is still not implemented 7 years after the initial request. |
One-class svm prob outputs were introduced in version 3.3 in August 2022. Sorry for the delay. |
Fantastic! Thanks! |
I need to probability of one-class svm.
please consider, thanks.
The text was updated successfully, but these errors were encountered: