-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
FIX: LOF with QuantileFilter raises IndexError #1330
Conversation
Co-authored-by: Max Halford <[email protected]>
Hey Max, thank you, you are absolutely right with the default score of 0. I looked at it from the perspective of two-tailed test but that's not how QuantileFIlter and ThresholdFIlter work here. I fixed the failing test due to stateless score_one fixture, related to issue #1331. Added some quick tests if some new way of handling the statelessness would be developed and tried to run some tests from other scorers (kept the quick one). PS. Sorry for my clumsy Pull requests, still learning how to contribute properly, though the guidelines here helped a lot. |
Very cool that you added a test, I appreciate it. You still have a little doctest issue to fix, probably a normal consequence of your change.
Don't apologize, you're doing very well ;) |
Hmm, there's something weird going on with the failed test. It reports that the expected value is the one prior to this commit f33e3ca. However, there's already a new value. Am I missing something?
|
Hi @MarekWadinger. Did you update the docstring test? As you fixed bugs in the code, it expected that the outputs will change. So you will need to update that accordingly :) |
You're right @MarekWadinger, there's a bug in CI whereby the old code is being used to run the tests. I will take a look tonight to fix this. In the meantime, let's merge your PR :) |
This pull request resolves the issue #1329 Error combining LocalOutlierFactor with AnomalyFilter