Hi everyone, I submitted a pull request to enable grid_search with failing classifiers. Did anyone have some time to look at it?
Thanks, Michal On 08/11/13 17:56, Michal Romaniuk wrote: > Did anyone work on this problem (exceptions raised by classifiers in > grid search) since? I would be happy to do some work to fix this > problem, but would need some advice. > > It seems to me like the easiest way around the issue is to wrap the call > to clf.fit() in a try statement and catch the exception if one is > raised. In such case, there are (at least) 2 questions: > > 1. Should it catch any exception or just a specific type? > 2. What should go into the results table for the failing grid point? > NaN? Zero? > > Thanks, > Michal > > On 20/06/13 18:03, Olivier Grisel wrote: >> The error message could indeed be improved but this is a pathological >> case anyway. >> >> I would rather make the grid search fault tolerant instead of making >> all the scikit-learn estimators accept invalid inputs (such as empty >> dataset). >> >> >> -- >> Olivier >> http://twitter.com/ogrisel - http://github.com/ogrisel >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> Scikit-learn-general mailing list >> Scikit-learn-general@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general >> > ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general