I thought logistic regression used the log of the odds ratio to convert
what's essentially a linear regression into probability values. Can't we do
the same with the decision function of linear SVC?

But yes, it makes more sense to use logistic regression. I'll try that.

Thanks!

On Thu, Oct 23, 2014 at 10:34 AM, Lars Buitinck <larsm...@gmail.com> wrote:

> 2014-10-23 16:21 GMT+02:00 George Bezerra <gbeze...@gmail.com>:
> > Is there a simple way to get the probabilities that a data point belongs
> to
> > a class for this model?
>
> SVMs aren't probability models. You can use LogisticRegression, that's
> the same algorithm but with a different loss function.
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Scikit-learn-general mailing list
> Scikit-learn-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>



-- 
George Bezerra
------------------------------------------------------------------------------
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to