摘要:
大作业一 boston房价预测 1. 读取数据集 2. 训练集与测试集划分 3. 线性回归模型:建立13个变量与房价之间的预测模型,并检测模型好坏。 4. 多项式回归模型:建立13个变量与房价之间的预测模型,并检测模型好坏。 5. 比较线性模型与非线性模型的性能,并说明原因。 #1.导入boston房价数据集 from sklearn.datasets import load_boston ... 阅读全文
posted @ 2018-12-24 18:45
傻猪一号
阅读(331)
评论(0)
推荐(0)
摘要:
#1.导入boston房价数据集 from sklearn.datasets import load_boston boston = load_boston() boston.keys() print(boston.DESCR) boston.data.shape boston.feature_names import pandas as pd pd.DataFrame(boston.dat... 阅读全文
posted @ 2018-12-09 20:27
傻猪一号
阅读(210)
评论(0)
推荐(0)
摘要:
text = '''The world is changing and time is spinning fast it's so amazing how you came into my life I know it seems all hope is gone I know you feel you can't be strong and once again the story ends ... 阅读全文
posted @ 2018-12-05 23:10
傻猪一号
阅读(127)
评论(0)
推荐(0)
浙公网安备 33010602011771号