If you don't need probabilities you could use
`clf.decision_function(x)` to get the signed distance to the
hyperplane which can also be used as a confidence score.

best,
 Peter

2011/12/5 xinfan meng <[email protected]>:
> Cool, Thanks!
>
>
> On Mon, Dec 5, 2011 at 8:12 PM, Mathieu Blondel <[email protected]>
> wrote:
>>
>> On Mon, Dec 5, 2011 at 9:05 PM, xinfan meng <[email protected]> wrote:
>> > I understand that the LogisticRegression would be similar to LinearSVC
>> > in
>> > terms of performance. However, I am  repeating other person's
>> > experiment.
>> > Still, Thank you.
>>
>> Paolo Losi has some code that implements Platt's method (internally
>> used by libsvm) in a general fashion:
>>
>>
>> https://github.com/paolo-losi/scikit-learn/blob/calibration/scikits/learn/calibration/platt.py
>>
>> It's not merged in scikit-learn yet so I guess you can copy-paste the
>> code for now.
>>
>> Mathieu
>
>
>
>
> --
> Best Wishes
> --------------------------------------------
> Meng Xinfan(蒙新泛)
> Institute of Computational Linguistics
> Department of Computer Science & Technology
> School of Electronic Engineering & Computer Science
> Peking University
> Beijing, 100871
> China
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>



-- 
Peter Prettenhofer

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to