-
Notifications
You must be signed in to change notification settings - Fork 96
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
RuntimeWarning: overflow encountered in reduce #81
Comments
I am facing the same issue, when running Mordred in command line, sometimes even with a single molecule. It seems that it occurs mostly with large molecules. |
I've confirmed this problem, also. I am trying to isolate the source by backtracking through compound sets and various python updates. I have previously run much larger molecules without the error. It may have to wait a few days before this gets prioritized for me. Regards, PLKX |
Question either poster who have experienced this problem: What, if any modifications to mordred are there in your system? For example, does your environment have code modifications such as these (or comparable): #80 (comment) #80 (comment) ?? I see that DinosaurInSpace is using networkx=2.4. I am using 2.5 with requisite code modifications in DetourMatrix.py which allow successful completion of mordred self-tests. The mordred self-tests do not test any molecules with a number of atoms equal or greater to those for which I have encountered the numpy overflow warning. Since the detour matrix is an n×n matrix for n = the number of heavy atoms (non-hydrogen), this seems the most logical starting point to track this problem. However, if the problem occurs in the absence of the DetourMatrix.py modifications, I may look elsewhere. Thanks, PLKX |
I'm having this overflow reduce problem as well. Env: google colab Code:
data: |
@plkx, Sorry for not answering earlier... Last week, I got this overflow problem: Previously I also had this one: I hope this can help. Let me know if you want me to run a few test. Sadly I can't communicate the structures I am studying. |
I am calculating the Mordred descriptors for a subset of 10k or so of HMDB. I get the following errors:
"
RuntimeWarning: overflow encountered in reduce
return ufunc.reduce(obj, axis, dtype, out, **passkwards)
"
Interestingly, the number of errors increases over time as I run through the set. I am not sure if this is some issue with the system, or perhaps a bias as you go through the hmdb subset.
I am happy to send over the hmdb id's and structures as pickle if you are interested.
Thanks so much! Super happy with everything else so far...
--
I am running very simple code for this operation per your tutorial:
calc = Calculator(descriptors)
df = calc.pandas('mol')
--
channels:
dependencies:
--
OS/distribution
Mac OSX 10.15 Catalina
conda or pip
conda
python version
Python 3.6.8 :: Anaconda, Inc.
library version
rdkit 2019.03.4.0 py36h65625ec_1 rdkit
The text was updated successfully, but these errors were encountered: