diff --git a/02_end_to_end_machine_learning_project.ipynb b/02_end_to_end_machine_learning_project.ipynb index b13496a4..b608c99c 100644 --- a/02_end_to_end_machine_learning_project.ipynb +++ b/02_end_to_end_machine_learning_project.ipynb @@ -2551,7 +2551,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Alternatively, you can set `sparse=False` when creating the `OneHotEncoder`:" + "Alternatively, you can set `sparse_output=False` when creating the `OneHotEncoder`:" ] }, { @@ -2577,7 +2577,7 @@ } ], "source": [ - "cat_encoder = OneHotEncoder(sparse=False)\n", + "cat_encoder = OneHotEncoder(sparse_output=False)\n", "housing_cat_1hot = cat_encoder.fit_transform(housing_cat)\n", "housing_cat_1hot" ]