Never mind, that was a mistake on my side.

I forgot to add a white-space from command line between the number of jobs and 
the redirection symbol '>', so sklearn was getting into troubles ...

Thank you,


________________________________
From: Andreas Mueller [t3k...@gmail.com]
Sent: Tuesday, May 05, 2015 2:35 PM
To: scikit-learn-general@lists.sourceforge.net
Subject: Re: [Scikit-learn-general] error when running random forest fit

Can you provide your code?
And what is n_jobs in this line? And mp.cpu_count()?


On 05/05/2015 02:29 PM, Pagliari, Roberto wrote:
I'm getting this error (for the first time) with random forest. I'm not sure 
what that means. It seems to appear regardless of the number of jobs I'm 
setting.



    clf.fit(X=np.array(X.values, dtype=float), y=np.ravel(y.values))
  File "/usr/local/lib/python2.7/dist-packages/sklearn/ensemble/forest.py", 
line 273, in fit
    for i, t in enumerate(trees))
  File 
"/usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/parallel.py", 
line 561, in __call__
    n_jobs = max(mp.cpu_count() + 1 + n_jobs, 1)
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'




------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y



_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net<mailto:Scikit-learn-general@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to