On 7 May 2012 06:49, Andreas Mueller <[email protected]> wrote:

> On 05/06/2012 10:46 PM, Lars Buitinck wrote:
> > 2012/5/6 Gael Varoquaux<[email protected]>:
> >> On Sun, May 06, 2012 at 10:36:04PM +0200, Andreas Mueller wrote:
> >>> Maybe we can include it with other checks,
> >> Sounds good.
> > I suggest we solve it with a utility method in ClassifierMixin. That
> > method could also set the classes_ attribute on the classifier.
> >
> +1
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>


With respect to the testing, we could add that to the forthcoming stress
testing module (which will also check for ability to work under different
size datasets, sparesness, etc). I was hoping to get all classifiers in
this, so no need to redo the work.

Any classifier that can't handle one class should raise an Error when given
one class. Adding it to the current checks is OK, but I'm assuming you mean
`np.array([1,1,1,1,1,1,1,1])` as "one class", and not `np.array([ 1, 1, 1,
-1, -1, -1, 1])` (the latter being for single class classification).

- Robert


-- 

Public key at: http://pgp.mit.edu/ Search for this email address and select
the key from "2011-08-19" (key id: 54BA8735)
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to