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 the full traceback of the error > you get. > > -- > 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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/scikit-learn-general > ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
