项目所需的环境:
python==3.9.0
scikit-learn==1.0.2
numpy==1.22.3
matplotlib==3.5.1
1.数据集
下面我以boston数据集为例进行介绍,boston房价数据集:
from sklearn.datasets import load_boston
from sklearn.model_selection import train_test_split
# dataset
housing = load_boston()
X = housing.data
y = housing.target
print<