机器学习实战----波士顿房价预测模型

波士顿房价模型预测是一个回归问题,可以采用r2_score方法来作为评价指标。

import numpy as np
import pandas as pd

from sklearn.metrics import r2_score
#从sklearn的数据库中导入波士顿房产数据
from sklearn.datasets import load_boston

from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import LinearRegression, SGDRegressor,RidgeCV,LogisticRegression


lb = load_boston()
x_train, x_test

你可能感兴趣的:(机器学习,机器学习,sklearn,python)