On Thu, Aug 15, 2013 at 12:54 AM, Shishir Pandey <[email protected]>wrote:

> How does the RidgeClassifier work? How does it decide how many classes
> are there. In my problem there are only two classes {-1, 1} but the
> Predict() gives 12, 15 and all sorts of classes. How does the
> RidgeClassifier decide the thresholds for each class?
>

It knows the number of classes by inspecting the number of unique values in
y.
So my guess is that your y contains more than just -1 and 1.

All tests pass and the document classification example on the news20
dataset works so I don't think the bug is in scikit-learn.

Cheers,
Mathieu
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to