Skip to content

Commit

Permalink
Fix OneHotEncoder sparse parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
BirkhoffG committed Apr 3, 2024
1 parent e38b222 commit 685ab35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbs/legacy/00_utils.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@
"outputs": [],
"source": [
"cat_idx = 2\n",
"ohe = OneHotEncoder(sparse=False)\n",
"ohe = OneHotEncoder(sparse_output=False)\n",
"x_cat = ohe.fit_transform(x[:, cat_idx:])\n",
"x_cont = x[:, :cat_idx].astype(float)\n",
"x_transformed = np.concatenate(\n",
Expand Down

0 comments on commit 685ab35

Please sign in to comment.