From 143ef4b1db9941be131a3acfb5c404e951525ff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Thu, 17 Oct 2019 18:05:01 +0800 Subject: [PATCH] Remove y=None argument in the transform() method --- 02_end_to_end_machine_learning_project.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02_end_to_end_machine_learning_project.ipynb b/02_end_to_end_machine_learning_project.ipynb index 79bee1d..8a148cd 100644 --- a/02_end_to_end_machine_learning_project.ipynb +++ b/02_end_to_end_machine_learning_project.ipynb @@ -911,7 +911,7 @@ " self.add_bedrooms_per_room = add_bedrooms_per_room\n", " def fit(self, X, y=None):\n", " return self # nothing else to do\n", - " def transform(self, X, y=None):\n", + " def transform(self, X):\n", " rooms_per_household = X[:, rooms_ix] / X[:, households_ix]\n", " population_per_household = X[:, population_ix] / X[:, households_ix]\n", " if self.add_bedrooms_per_room:\n",