Skip to content

Commit eedbd22

Browse files
committed
modified: mglearn/datasets.py
1 parent 842e623 commit eedbd22

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

mglearn/datasets.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
from scipy import signal
55
from sklearn.datasets import load_boston
6+
from sklearn.datasets import fetch_california_housing
67
from sklearn.preprocessing import MinMaxScaler, PolynomialFeatures
78
from sklearn.datasets import make_blobs
89

@@ -27,13 +28,13 @@ def make_wave(n_samples=100):
2728
return x.reshape(-1, 1), y
2829

2930

30-
def load_extended_boston():
31-
boston = load_boston()
32-
X = boston.data
31+
def load_extended_housing():
32+
housing = fetch_california_housing()
33+
X = housing.data
3334

34-
X = MinMaxScaler().fit_transform(boston.data)
35+
X = MinMaxScaler().fit_transform(housing.data)
3536
X = PolynomialFeatures(degree=2, include_bias=False).fit_transform(X)
36-
return X, boston.target
37+
return X, housing.target
3738

3839

3940
def load_citibike():

0 commit comments

Comments
 (0)