Skip to content

Commit

Permalink
updated use of OneHotEncoder with bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
MinuraPunchihewa committed Dec 4, 2024
1 parent 58c4b0d commit db8038e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightwood/encoder/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CatNormalizer:
def __init__(self, encoder_class='one_hot'):
self.encoder_class = encoder_class
if encoder_class == 'one_hot':
self.scaler = OneHotEncoder(sparse=False, handle_unknown='ignore')
self.scaler = OneHotEncoder(sparse_output=False, handle_unknown='ignore')
else:
self.scaler = OrdinalEncoder()

Expand Down

0 comments on commit db8038e

Please sign in to comment.