File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 3
3
import os
4
4
from scipy import signal
5
5
from sklearn .datasets import load_boston
6
+ from sklearn .datasets import fetch_california_housing
6
7
from sklearn .preprocessing import MinMaxScaler , PolynomialFeatures
7
8
from sklearn .datasets import make_blobs
8
9
@@ -27,13 +28,13 @@ def make_wave(n_samples=100):
27
28
return x .reshape (- 1 , 1 ), y
28
29
29
30
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
33
34
34
- X = MinMaxScaler ().fit_transform (boston .data )
35
+ X = MinMaxScaler ().fit_transform (housing .data )
35
36
X = PolynomialFeatures (degree = 2 , include_bias = False ).fit_transform (X )
36
- return X , boston .target
37
+ return X , housing .target
37
38
38
39
39
40
def load_citibike ():
You can’t perform that action at this time.
0 commit comments