Remove y=None argument in the transform() method

main
Aurélien Geron 2019-10-17 18:05:01 +08:00
parent b5cbdc9276
commit 143ef4b1db
1 changed files with 1 additions and 1 deletions

View File

@ -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",