-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Python Kernel Died unexpectedly when using a for loop and RandomForestRegressor #7903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Failing to replicate on OS X 10.12.1 / Python 3.5.2 |Continuum Analytics, On 18 November 2016 at 04:59, ISAE-Nicolas notifications@github.com wrote:
|
Do you maybe run out of memory? |
perhaps related to #7811, which i haven't been able to figure out. I think it's something about the use of numpy arrays to hold objects in the mae code, which prevents it from being freed until it reaches the python level... |
I can reproduce that this keeps eating arbitrary large amounts of memory. Which is somewhat but not entirely surprising. You have 10 target variables that are all completely unrelated to the features, so you have to create 1500 leafs per tree. |
Hm yeah sounds like a memory leak. |
Same story on OS X 10.12.1 / Python 3.5.2 | Anaconda |
I am going to close this one, since it is a duplicate of #7811. |
Description
I try to 30 fit times a Random Forest Regressor (sklearn.ensemble.RandomForestRegressor) on different sets of data.
In order to do it I use a for loop. But every-times, I run my script the python kernel died unexpectedly.
I run this script on different machines, the power of the machine (RAM and CPU) only delays the moment when the kernel die.
I write a minimal case of my script without my personal data and of the other thinks I want to do normally. In my complete and original script in which I read the data in a csv file and write the prediction in an other csv file, the kernel die even quickly.
Steps/Code to Reproduce
Example:
Versions
I try my script on two different machines.
On the first one the script crash after only 3 iterations whereas on the second the script can reach 25 iterations.
The setup of the first machine :
Windows-10-10.0.14393-SP0
Python 3.5.2 |Anaconda 4.2.0 (32-bit)| (default, Jul 5 2016, 11:45:57) [MSC v.1900 32 bit (Intel)]
NumPy 1.11.1
SciPy 0.18.1
Scikit-Learn 0.18
The setup of the second one :
Linux-3.10.0-327.28.2.el7.x86_64-x86_64-with-centos-7.2.1511-Core
Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 2 2016, 17:53:06)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]
NumPy 1.11.1
SciPy 0.18.1
Scikit-Learn 0.18.1
The text was updated successfully, but these errors were encountered: