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