Re: [Scikit-learn-general] Random forest with zero features

2013-11-25 Thread Michal Romaniuk
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

Re: [Scikit-learn-general] Random forest with zero features

2013-11-10 Thread Andy
Hi Michal. Thanks for wanting to work on this. Could you please open an issue? That makes it easier to track the progress. Could you also post the traceback / error from your example script there? Thanks, Andy On 11/08/2013 09:56 AM, Michal Romaniuk wrote: > Did anyone work on this problem (excep

Re: [Scikit-learn-general] Random forest with zero features

2013-11-08 Thread Michal Romaniuk
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 exceptio

Re: [Scikit-learn-general] Random forest with zero features

2013-06-20 Thread Olivier Grisel
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

Re: [Scikit-learn-general] Random forest with zero features

2013-06-20 Thread Michal Romaniuk
Here is an example script: import numpy from sklearn import ensemble y = numpy.random.random_integers(0,1,100) X = numpy.zeros((100,0)) rf = ensemble.RandomForestClassifier() rf.fit(X,y) Michal > I am not sure to understand. Please provide a minimalistic > reproduction script (10 lines max) and

Re: [Scikit-learn-general] Random forest with zero features

2013-06-20 Thread Olivier Grisel
2013/6/20 Michal Romaniuk : > What is the default behaviour for random forests with zero features? It > seems to me that it just gives an error (although I'm not 100% sure if > that's the cause). This is a problem when using a feature selection step > and searching a grid for a good feature selecti