- 波士顿房产数据(完整数据)
- 实现多变量(手写代码)
- 数据标准化(手写代码)
- 网格搜索调参
5 from sklearn.linear_model import LinearRegression对比
1、导入数据
from sklearn.datasets import load_boston
boston = load_boston()
print(boston.feature_names)
print(boston.DESCR)
输出:
Notes
Data Set Characteristics:
:Number of Instances: 506
:Number of Attributes: 13 numeric/categorical predictive
:Median Value (attribute 14) is usually the target
:Attribute Information (in order):
- CRIM per capita crime rate by town
- ZN proportion of residential land zoned for lots over 25,000 sq.ft.
- INDUS proportion of non-retail business acres per town
- CHAS Charles River dummy variable (= 1 if tract bounds river; 0 otherwise)
- NOX nitric oxides concentration (parts per 10 million)
- RM average number of rooms per dwelling
- AGE proportion of