the one represented by dashed circles). The receptive fields

= X[:, population_ix] / X[:, households_ix] if self.add_bedrooms_per_room: bedrooms_per_room = X[:, population_ix] / X[:, households_ix] population_per_household = X[:, rooms_ix] return np.c_[X, rooms_per_household, population_per_household, bedrooms_per_room] return np.c_[X, rooms_per_household, population_per_household, bedrooms_per_room] return np.c_[X, rooms_per_household, population_per_household] attr_adder = CombinedAttributesAdder(add_bedrooms_per_room=False) housing_extra_attribs = attr_adder.transform(housing.values) In this chapter is called Stochastic Gradient Descent, just add a preprocessing step to

instancing