Skip to content
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

svm.OneClassSVM doesn't work with predict_proba() #993

Closed
erg opened this issue Aug 2, 2012 · 1 comment
Closed

svm.OneClassSVM doesn't work with predict_proba() #993

erg opened this issue Aug 2, 2012 · 1 comment

Comments

@erg
Copy link
Contributor

erg commented Aug 2, 2012

If you try to call predict_proba() on the svm.OneClassSVM classifier then it says you must fit it with probability=True.

Unlike svm.SVC, the svm.OneClassSVM constructor doesn't take a probability=True kwarg. The docs say to pass probability=True to the fit() function, but that doesn't work either.

@mblondel
Copy link
Member

mblondel commented Aug 2, 2012

Fixed in master already: predict_proba has been removed from OneClassSVM.

@erg erg closed this as completed Aug 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants