-
Notifications
You must be signed in to change notification settings - Fork 15
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
AssertionError: did not converge #30
Comments
@qinshengyuan FEEMS only works with segregating sites so please ensure to remove invariant sites. Also, try a few different values of |
Hi @VivaswatS, I am having a very similar to the user above issue above:
I have tried a range of lambda values with no luck. Can you please clarify what you mean by segregating/invariant sites? I presumed you meant each sample has to be from a unique location? Any advice would be very much appreciated! |
I encountered the following errors. What should I do?
Mapping files: 100%|██████████| 3/3 [00:03<00:00, 1.19s/it]
mambaforge/lib/python3.10/site-packages/feems/spatial_graph.py:81: RuntimeWarning: divide by zero encountered in divide
self.frequencies = self.frequencies / np.sqrt(self.mu * (1 - self.mu))
mambaforge/lib/python3.10/site-packages/feems/spatial_graph.py:81: RuntimeWarning: invalid value encountered in divide
self.frequencies = self.frequencies / np.sqrt(self.mu * (1 - self.mu))
Traceback (most recent call last):
File "workspace/test-2.py", line 14, in
class TestObjective(unittest.TestCase):
File "workspace/test-2.py", line 37, in TestObjective
sp_graph.fit(lamb = 20.0)
File "mambaforge/lib/python3.10/site-packages/feems/spatial_graph.py", line 377, in fit
self.fit_null_model(verbose=verbose)
File "mambaforge/lib/python3.10/site-packages/feems/spatial_graph.py", line 313, in fit_null_model
assert res.success is True, "did not converge"
AssertionError: did not converge
The text was updated successfully, but these errors were encountered: