If I use predict_proba with svm.SVC I get:
probas = model_svm.predict_proba(data_test)
File "C:\Python26\lib\site-packages\sklearn\svm\base.py", line 490, in
predict_proba "probability estimates must be enabled to use this method")
NotImplementedError: probability estimates must be enabled to use this
method
C:\Users\mbouguel.LORIA\Desktop\sklearn\2>
2013/2/27 Andreas Mueller <amuel...@ais.uni-bonn.de>
> On 02/27/2013 04:48 PM, ShNaYkHs ShNaYkHs wrote:
> > Is it possible to get a confidence value or a probability (P(y|x))
> > that the class y predicted for a given data-point x is correct ? Using
> > any of these classifiers from sklearn: tree, GaussianNB (naive
> > bayes), KNeighborsClassifier, svm (svm.SVC ..).
> Use the methods "predict_proba" and "decision_function".
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Scikit-learn-general mailing list
> Scikit-learn-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general