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

ValueError: NaN, inf or invalid value detected in endog, estimation infeasible #172

Open
lisagrigoreva opened this issue Aug 24, 2022 · 2 comments

Comments

@lisagrigoreva
Copy link

Hello,
I'm running Spladder under default settings, the graph was constructed successfully without any errors.
However, the testing mode is crushed for 2 samples of my cohort.
I'm already re-done the alignment for these samples but still getting the same error.
Thank you!

The error is:

/.conda/envs/riso/lib/python3.9/site-packages/numpy/core/_methods.py:190: RuntimeWarning: invalid value encountered in double_scalars
  ret = ret.dtype.type(ret / rcount)
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "/users/elizaveta.grigoreva/.conda/envs/riso/lib/python3.9/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/users/elizaveta.grigoreva/.conda/envs/riso/lib/python3.9/site-packages/spladder/spladder_test.py", line 81, in estimate_dispersion_chunk
    result = modNB.fit()
  File "/users/elizaveta.grigoreva/.conda/envs/riso/lib/python3.9/site-packages/statsmodels/genmod/generalized_linear_model.py", line 1075, in fit
    return self._fit_irls(start_params=start_params, maxiter=maxiter,
  File "/users/elizaveta.grigoreva/.conda/envs/riso/lib/python3.9/site-packages/statsmodels/genmod/generalized_linear_model.py", line 1213, in _fit_irls
    wls_mod = reg_tools._MinimalWLS(wlsendog, wlsexog,
  File "/users/elizaveta.grigoreva/.conda/envs/riso/lib/python3.9/site-packages/statsmodels/regression/_tools.py", line 52, in __init__
    raise ValueError(self.msg.format('endog'))
ValueError: NaN, inf or invalid value detected in endog, estimation infeasible.
"""
@akahles
Copy link
Member

akahles commented Aug 24, 2022

Dear @lisagrigoreva ,

Thanks a lot for reporting the issue. Can you please provide more details on your analysis setup? I would be interested in the following question:

  • How many samples do you have?
  • How did you generate the events that are tested (command line parameters)?
  • How exactly did you test? How big are your groups?
  • What is the remaining output of the test command (run in verbose mode)? How many events are being tested?

Thanks and Cheers,
Andre

@kate-stankiewicz
Copy link

Hello,

I am encountering a similar error. Was there any resolution to this?

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

3 participants