Skip to content
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

Feature/expected categories #1597

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Update river/preprocessing/one_hot.py
Code review fixes

Co-authored-by: Max Halford <[email protected]>
  • Loading branch information
ColdTeapot273K and MaxHalford authored Sep 10, 2024
commit cbb202c43648719c231370438597f6d3c273f1b0
1 change: 1 addition & 0 deletions river/preprocessing/one_hot.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ class OneHotEncoder(base.MiniBatchTransformer):
0 0 0 0 0
1 1 0 0 1
2 0 0 0 0

"""

def __init__(self, categories = "auto", drop_zeros=False, drop_first=False):
Expand Down
Loading