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

RuntimeWarning: overflow encountered in add params['prior'], params['cv']) #29

Open
ingridejt opened this issue Jul 11, 2016 · 5 comments

Comments

@ingridejt
Copy link

I am attempting to run faststructure with logistic prior after running simple prior successfully. The error I get is:
RuntimeWarning: overflow encountered in add params['prior'], params['cv'])
Is this a problem with numpy? Is my dataset too large?

@ddrinan
Copy link

ddrinan commented Sep 11, 2017

I have the same issue, but only for some runs. Any resolution to this? Here is the entire error.

dan@computer$ python structure.py -K 8 --input="../../276samples_6425_structure" --output="../../all_samples_k8b" --prior=logistic --format=str
/usr/local/lib/python2.7/dist-packages/numpy-1.14.0.dev0_7172b07-py2.7-linux-x86_64.egg/numpy/core/_methods.py:32: RuntimeWarning: overflow encountered in reduce
return umr_sum(a, axis, dtype, out, keepdims)
structure.py:178: RuntimeWarning: overflow encountered in add
params['prior'], params['cv'])
structure.py:178: RuntimeWarning: overflow encountered in subtract
params['prior'], params['cv'])

@alexkrohn
Copy link

alexkrohn commented Feb 18, 2022

Same exact issue here running a dataset of 3095 SNPs in 336 individuals on K 1 through 10 with logistic priors. The error occurred at K = 8.

/Users/AirAlex/miniconda3/envs/py27/lib/python2.7/site-packages/numpy/core/fromnumeric.py:83: RuntimeWarning: overflow encountered in reduce
  return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
/Users/AirAlex/miniconda3/envs/py27/lib/python2.7/site-packages/numpy/core/_methods.py:36: RuntimeWarning: overflow encountered in reduce
  return umr_sum(a, axis, dtype, out, keepdims, initial)
/Users/AirAlex/miniconda3/envs/py27/bin/structure.py:179: RuntimeWarning: overflow encountered in add
  params['prior'], params['cv'])
/Users/AirAlex/miniconda3/envs/py27/bin/structure.py:179: RuntimeWarning: overflow encountered in subtract
  params['prior'], params['cv'])

@Erikacj
Copy link

Erikacj commented May 24, 2024

Has anyone figured this error out? I'm getting the same errors but only at K=5 and K=8:

structure.py:178: RuntimeWarning: overflow encountered in add
structure.py:178: RuntimeWarning: overflow encountered in subtract

@sanderdebacker
Copy link

To quote the words of the owner Anil Raj:

"Hi, apologies for this really delayed response! RuntimeWarnings in python can usually be ignored, since the underlying issue is often handled properly by the code. However, please let me know if the final output seems strange (e.g., if they contain nans, or infs)."

@MeliScheel
Copy link

Hi!! i just encontered the same error: fastStructure/1.0-foss-2019b-Python-2.7.15/structure.py:179: RuntimeWarning: overflow encountered in subtract
params['prior'], params['cv'])
but the real problem is that: 1) i get nans, 2) and that the analysis seems stocked...it has already been 1 whole day and it has not finished.

Thank you for your help!

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

No branches or pull requests

6 participants