-
Notifications
You must be signed in to change notification settings - Fork 325
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
Fixed #610 Imprecision in identical subsequence case #657
Conversation
So, this problem is more complicated than I thought :) I think I found an alternative approach and it seems it is working. HOWEVER, it does not work for this new test function I designed:
There are still two identical subsequences... let's see the error:
Now, the third element in y is (I think the pearson value is about |
Codecov Report
@@ Coverage Diff @@
## main #657 +/- ##
=======================================
Coverage 99.89% 99.89%
=======================================
Files 80 80
Lines 11434 11531 +97
=======================================
+ Hits 11422 11519 +97
Misses 12 12
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@seanlaw |
dbaccab
to
1d0a22c
Compare
Notes: (1)
This approach sometimes results in error. In one case, (2) |
(1) I decided to not pursue a new approach for calculating (2) The two new test functions related to identical subsequences are now passing. Also, as opposed to our first attempt, all other test functions are passing as well. (3) I am refining "var" in (4) I refine The downside of doing the refinement in (5) I did not record the running time of (6) In case that matters, there is this test function below that is not added to
This test function fails and, I couldn't resolve it yet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NimaSarajpoor Please consider the following suggestions
I think I like where
Right. This is why I would keep the refinement in
Where is the 10% increase coming from? Which line is causing such a huge increase? If there are no identical subsequences, does the time go back to what it was before?
It seems important to resolve :) |
@seanlaw |
@seanlaw |
@NimaSarajpoor Let me try to take a look and see what happens when I run your latest commit locally as well. The fact that the same test is failing in three independent environments is concerning. |
@NimaSarajpoor When I cloned your branch and executed the tests suite, I am seeing the same failed tests:
This failed 5/5 times in a row with the same error. By any chance, are you forgetting to reinstall the latest version of your local branch? |
I think I am installing it. Please see below:
Note that all 27 test are passing. As you can see, I installed it. I am going to push again just in case I missed something before.
|
@NimaSarajpoor I'm not sure why you aren't seeing the failed test. The only thing that I noticed was that, in your case, it says:
But, in the Github Actions (as well as my local copy of your branch), I see:
We should both have the same set of files |
Thanks for brining that to my attention. I tried to do a Update |
I don't know if that is the source of the failed test but it is clear that there are differences between what has been pushed and what you have installed locally |
Yeah...if I cannot find the file, or the cause of this problem, I may create a new, clean branch and apply the changes there and then submit another PR. If it goes well, then we can close this one. Is that okay? |
In case it matters, to recreate your branch and trigger the failed test, I simply did:
|
@NimaSarajpoor Can this be closed or is there more work to be done? |
This PR was replaced with PR #668 (see #668 (comment)) So, I think we can just close this PR and track the progress in the PR #668 |
This PR resolves issue #610 by adding a new config variable to reset the already-calculated pearson value to
1.0
when it exceeds the threshold set by the config variable.