模型是关于加州房价的预测,数据集来源于sklearn的datasets中
1.模型准备
调包
from sklearn.datasets import fetch_california_housing
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.feature_selection import SelectKBest,f_regression
from sklearn.svm import SVR
from sklearn.metrics import mean_squared_error
from sklearn.externals import joblib
import time
RANDOM_STATE =42