For me, SVC does raise the error. Two-dimensional y is only accepted if I wrap the SVC in a OneAgainstRestClassifier.
On Fri, May 18, 2012 at 4:17 AM, Mathieu Blondel <[email protected]> wrote: > On Fri, May 18, 2012 at 4:42 PM, Lars Buitinck <[email protected]> wrote: >> >> Actually, the bug seems to be in SVC. It is fitted with a single class >> but for some reason its decision_function returns a (1000, 45)-shaped >> array, which is then ravel'd and transposed to produce the (45000, >> 1)-shaped output array. > > > I would just raise the error in SVC, then. > > Mathieu > > ------------------------------------------------------------------------------ > 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 > ------------------------------------------------------------------------------ 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
