Repository navigation
Conversation
Member
Author
|
test failures for reference (with relevant line breaks added) |
josef-pkt
commented
Feb 17, 2022
| x_new = x_psd.copy() | ||
| x_new[diag_idx, diag_idx] = 1 | ||
| else: | ||
| raise |
Member
Author
There was a problem hiding this comment.
this raise was likely left during debugging
16 of 20 tasks
Member
Author
|
There are still tests that fail randomly, every once in a while |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This was supposed to fix #3227 value ignore in clip_evals.
Include fix for non or slow convergence in
tests\test_corrpsd.py:test_corrpsd_threshold(test run print convergence warnings. I tried up to 1000 iterations, but we only seem to approach the threshold in the eigenvalue for corr_nearest from below.Now, convergence is very fast in test_corrpsd_threshold with smallest eigenvalue possibly a bit above threshold.
However, unit test against R fail now. I'm not sure it's really testing the same things, e.g. R has ones on diagonal, i.e. corr_nearest, while the test cases uses cov_nearest with diagonal values slightly above one.
distance to original matrix is smaller in the new version than in the R reference numbers.
This looks more like a reason to adjust the unit tests, than the code.
About the fudge term (I just made it up):
status: currently fails in comparison to R, I need to get the changes out of the way, and haven't looked and decided yet whether to adjust the unit tests or the code.