On 02/03/2012 01:47 PM, Mathias Verbeke wrote: > Hi Andreas, > > Thanks for the answer. Hm, that's a pity. When I add it as a parameter > to fit, I get > > AssertionError: Invalid parameter class_weight for estimator GridSearchCV > You would have to add it to the "fit" method of SVC, not GridSearchCV. > Does this mean class weighting isn't possible at all with GridSearch? At the moment, yes.
If this is very important to you, I might be able to fix it this weekend. No promise, though. You would have to use the github version then. Cheers, Andy ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
