各数据特征与房价的关系
Posted a1234tt
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了各数据特征与房价的关系相关的知识,希望对你有一定的参考价值。
from sklearn.datasets import load_boston boston = load_boston() print(boston.keys()) data = boston.data x = data[:,5] y = boston.target import matplotlib.pyplot as plt plt.scatter(x,y) plt.plot(x,9*x-30) plt.show()
from sklearn.datasets import load_boston boston = load_boston() print(boston.keys()) data = boston.data x = data[:,6] y = boston.target import matplotlib.pyplot as plt plt.scatter(x,y) plt.plot(x,9*x-30) plt.show()
from sklearn.datasets import load_boston boston = load_boston() print(boston.keys()) data = boston.data x = data[:,10] y = boston.target import matplotlib.pyplot as plt plt.scatter(x,y) plt.plot(x,9*x-30) plt.show()
from sklearn.datasets import load_boston boston = load_boston() print(boston.keys()) data = boston.data x = data[:,7] y = boston.target import matplotlib.pyplot as plt plt.scatter(x,y) plt.plot(x,9*x-30) plt.show()
from sklearn.datasets import load_boston boston = load_boston() print(boston.keys()) data = boston.data x = data[:,9] y = boston.target import matplotlib.pyplot as plt plt.scatter(x,y) plt.plot(x,9*x-30) plt.show()
from sklearn.datasets import load_boston boston = load_boston() print(boston.keys()) data = boston.data x = data[:,8] y = boston.target import matplotlib.pyplot as plt plt.scatter(x,y) plt.plot(x,9*x-30) plt.show()
以上是关于各数据特征与房价的关系的主要内容,如果未能解决你的问题,请参考以下文章