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
Would you say this is a bug? The idea here is that there is no need to keep track of values when drop_zeros=True. Indeed, if drop_zeros=False, then we need to keep track of values in order to add zeros. But if not, there is no need to keep track, which is why we return directly in learn_one and learn_many.
What am I missing? Maybe it would be preferable if oh.values was a private property?
Versions
river version: recent main (d606d7b)
Python version: Python 3.11.8
Operating system: Fedora Linux
Describe the bug
These 4 interesting lines effectively stop
OneHotEncoder
from learning whendrop_zeros=False
:Steps/code to reproduce
Setup:
Actual result:
Expected result:
The text was updated successfully, but these errors were encountered: