Skip to content
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

Running Minepy causes Python Jupyter Notebook to Crash #12

Closed
hangyao opened this issue Sep 13, 2017 · 9 comments
Closed

Running Minepy causes Python Jupyter Notebook to Crash #12

hangyao opened this issue Sep 13, 2017 · 9 comments
Labels

Comments

@hangyao
Copy link

hangyao commented Sep 13, 2017

Hi Team!

I tried to run a piece of Minepy code in Jupyter Notebook but it causes the notebook to crash.

from minepy import MINE

mine = MINE(alpha=0.6, c=15, est="mic_e")
scores = []
for col in X_train.T:
    mine.compute_score(col, y_train)
    scores.append(mine.mic())

The size of variable X_train is (66393, 79).

The system is:
Windows 7 x64
Python 3.6
Minepy 1.2.1

It seems that the data size of 66,393 causes the crash. I reduced the data rows to 20,000 and it worked fine, but 30,000 rows of data will crash the notebook. Is it caused by the limitation of physical memory or the algorithm? My system has 8G memory. Anyway I think some changes in the code may be required to resolve this issue, either asserting the memory or throwing an exception.

Thanks!

WERA24E.tmp.appcompat.txt
WER968A.tmp.WERInternalMetadata.xml.txt

@davidealbanese
Copy link
Member

davidealbanese commented Sep 14, 2017

Dear @hangyao,
I don't think is a problem of the algorithm. Could you run the same code on the Python terminal and verify if the problem persists?

Thank you!

@davidealbanese
Copy link
Member

Moreover, I suggest to use alpha=0.4 and c=5 or 1 for n>40.000 if you are using the MICe estimator (https://arxiv.org/pdf/1505.02214.pdf).

@hangyao
Copy link
Author

hangyao commented Sep 15, 2017

@davidealbanese , thank you for the response! I tried to change the parameters and run on the Python terminal, and the crash problem persists. Down-sampling to around 21,020 - 21,030 rows of data can resolve the issue, but the exact number of rows leading to crash may change from time to time.

@davidealbanese
Copy link
Member

Dear @hangyao,
what is the error message? Which compiler are you using for Python in Windows?

@hangyao
Copy link
Author

hangyao commented Sep 15, 2017

It says An unhandled win32 exception occurred in python.exe [18936].

I'm not really sure about what compiler I'm using for Python in Windows. I think it is Microsoft Visual C++ 14.0 standalone: Build Tools for Visual Studio 2017 but I can be wrong. Could you please let me know how to find it out? Thank you!

@davidealbanese
Copy link
Member

Dear @hangyao,
try to reinstall the Build Tools for Visual Studio 2017 from this page: https://www.visualstudio.com/downloads/. After that, reinstall the minepy package.
Let me know if it works...

@davidealbanese
Copy link
Member

Dear @hangyao,
is there any news?

@hangyao
Copy link
Author

hangyao commented Sep 21, 2017

@davidealbanese I reinstall the build tools for VS 2017, and reinstall minepy using pip. The issue is still there. Thanks!

@davidealbanese
Copy link
Member

Probably related to #22.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants