Skip to content

Commit

Permalink
update OneHotEncoder arg sparse to sparse_output (#3298)
Browse files Browse the repository at this point in the history
  • Loading branch information
qusongms authored Jul 22, 2024
1 parent c939dec commit ef4f57a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@
" ])\n",
" cat_pipe = Pipeline([\n",
" ('cat_imputer', SimpleImputer(strategy='constant', fill_value='?')),\n",
" ('cat_encoder', OneHotEncoder(handle_unknown='ignore', sparse=False))\n",
" ('cat_encoder', OneHotEncoder(handle_unknown='ignore', sparse_output=False))\n",
" ])\n",
" feat_pipe = ColumnTransformer([\n",
" ('num_pipe', num_pipe, pipe_cfg['num_cols']),\n",
Expand Down

0 comments on commit ef4f57a

Please sign in to comment.