多元线性回归和多项式回归

1、多元线性回归
n 个预测器变量,那么模型可以用以下方程表示:

在这里插入图片描述
波士顿房价数据集。该数据集包含 506 座房子的 13 个特征,均值为 $1000。你将用一个模型拟合这 13 个特征,以预测房价

from sklearn.linear_model import LinearRegression
from sklearn.datasets import load_boston

# Load the data from the boston house-prices dataset 
boston_data = load_boston()
x = boston_data['data']
y = boston_

猜你喜欢

转载自blog.csdn.net/JackLi31742/article/details/105463408