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

Correct small negative eigenvalues in covariance #152

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mikedeltalima
Copy link

#151

Doesn't fail existing tests, but should add a test for this. Could revert some of the auto-whitespace removal if desired.

Deprecated version of the method in utils.py. Should update this as well?

@coveralls
Copy link

coveralls commented Nov 22, 2019

Coverage Status

Coverage decreased (-0.04%) to 75.592% when pulling 9363f60 on mikedeltalima:covariance-warn into 8170c84 on QInfer:master.

@mikedeltalima
Copy link
Author

mikedeltalima commented Dec 13, 2019

This fixes a warning in an existing test, so I am not going to add a new test unless one is suggested.

src/qinfer/tests/test_smc.py::TestSMCEffectiveSampleSize::test_resample_thresh
  /Users/mdlauria/gitSource/python-qinfer/src/qinfer/distributions.py:397: ApproximationWarning: Numerical error in covariance estimation causing positive semidefinite violation.
    warnings.warn('Numerical error in covariance estimation causing positive semidefinite violation.', ApproximationWarning)

@mikedeltalima mikedeltalima changed the title WIP: suggested change to correct small eigenvalues in covariance Correct small negative eigenvalues in covariance Dec 13, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants