Skip to content

Commit

Permalink
Fixed sparse keyword argument for onehot encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
nityansuman authored Mar 2, 2024
1 parent 004eccf commit 7343eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lazypredict/Supervised.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
categorical_transformer_low = Pipeline(
steps=[
("imputer", SimpleImputer(strategy="constant", fill_value="missing")),
("encoding", OneHotEncoder(handle_unknown="ignore", sparse=False)),
("encoding", OneHotEncoder(handle_unknown="ignore", sparse_output=False)),
]
)

Expand Down

0 comments on commit 7343eab

Please sign in to comment.