Fix ECOD and COPOD implementation according to #453 #493
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.
Hi, it's me again ;-)
I found time to look into the basic intention behind issue #453 again. In order to fix this, I made some adaptions to ECOD and COPOD that fix the issue as initially stated. This is the corresponding pull request.
I adapted the implementation of both algorithms to be more in line with the original papers proposed as we discussed in the issue (see details in my earlier post). You can also find the ECOD-Paper here and the COPOD-Paper here.
In addition to that, I also did a minor cleanup to get rid of some code repetition in case of parallel execution. This corresponds to these lines which are repeated in these lines by simply merging
_decision_function_parallel
intodecision_function
in ECOD. The same goes for COPOD as well.I already saw a small decrease in line coverage by the tests in my local repository, but as far as I can tell this is mainly due to reducing the number of lines overall (and moving some lines). The lines that change the algorithm itself are covered by tests. Get back to me, if I should make sure the few lines are covered as well (have not been before) and I will update this pull request.
Thanks for providing this package and your effort to always look into the pull requests!
Lucas
All Submissions Basics:
All Submissions Cores: