Hi Shalu.
Can you give your code. The prediction is just the argmax of
predict_proba, so I'd be very surprised if they are not consistent.
Cheers,
Andy
On 02/25/2015 08:33 AM, shalu jhanwar wrote:
Hi all,
I'm facing the same problem with predict_proba for Random_forest
classifier. I want to get a confidence value for each class and each
prediction. But as shown here, that probability values are not
consistent with prediction always so I was looking for
decision_function method for random forest, but didn't find.
Can anyone suggest me how can I get decision scores in case of random
forest?
thanks!
Shalu
On Thu, Jun 26, 2014 at 10:46 AM, Lars Buitinck <larsm...@gmail.com
<mailto:larsm...@gmail.com>> wrote:
2014-06-26 9:15 GMT+02:00 Andy <t3k...@gmail.com
<mailto:t3k...@gmail.com>>:
> Maybe the calibration is not used for prediction? That would be
a bit
> odd, though...
That's exactly what's going on. Prediction is consistent with
decision_function, but not predict_proba.
------------------------------------------------------------------------------
Open source business process management suite built on Java and
Eclipse
Turn processes into business applications with Bonita BPM
Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
<mailto:Scikit-learn-general@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general