You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
river version: development Python version: Python 3.10.1 Operating system: macOS Sonoma 14.0 (23A344)
Describe the bug
Hello 👋
I found out that score_one method of anomaly.LocalOutlierFactor changes internal state of the detector.
If this is not intentional I'd like to assist in resolving this issue. I tried to trace back the error and found out that the problem is connected to expand_objects function, which creates only a references to original variables. Following modification to lines 349-369 in anomaly.LocalOutlierFactorHERE, helped me to preserve the state over score_one calls.
Versions
river version: development
Python version: Python 3.10.1
Operating system: macOS Sonoma 14.0 (23A344)
Describe the bug
Hello 👋
I found out that
score_one
method ofanomaly.LocalOutlierFactor
changes internal state of the detector.If this is not intentional I'd like to assist in resolving this issue. I tried to trace back the error and found out that the problem is connected to
expand_objects
function, which creates only a references to original variables. Following modification to lines 349-369 inanomaly.LocalOutlierFactor
HERE, helped me to preserve the state overscore_one
calls.to
Please, let me know if that makes sense, and I'd be happy to elaborate on any related issues or comments.
Thank you 🙏
Steps/code to reproduce
returns
The text was updated successfully, but these errors were encountered: