线性回归:波士顿房价
模型的斜率:[ -0.11225805 0.05053865 0.02966496 1.9157657 -17.10023384
3.61262367 -0.00209593 -1.4725001 0.3153099 -0.01313788
-0.95864297 0.00968798 -0.51735275],截距:37.56398728469011
[使用20%X的预测值y]与[20%真实值y]的对应关系:
['3.72 <-> 8.8', '18.44 <-> 10.9', '28.43 <-> 28.0', '34.98 <-> 30.1', '12.85 <-> 10.5', '9.91 <-> 8.3', '18.54 <-> 19.5', '34.38 <-> 31.0', '28.46 <-> 33.4', '24.32 <-> 23.4', '20.76 <-> 21.0', '32.14 <-> 27.9', '30.78 <-> 32.9', '16.52 <-> 13.8', '34.59 <-> 37.3', '30.62 <-> 28.7', '8.14 <-> 5.0', '16.49 <-> 17.6', '18.96 <-> 17.8', '22.63 <-> 25.0', '33.23 <-> 36.1', '35.45 <-> 32.4', '23.17 <-> 22.9', '18.03 <-> 14.5', '15.22 <-> 15.4', '17.37 <-> 15.1', '19.28 <-> 18.2', '30.37 <-> 34.7', '39.27 <-> 50.0', '40.58 <-> 50.0', '14.37 <-> 13.1', '28.61 <-> 22.8', '25.59 <-> 24.1', '21.36 <-> 20.1', '6.5 <-> 10.5', '23.09 <-> 24.7', '36.38 <-> 36.0', '25.56 <-> 23.1', '24.6 <-> 21.7', '5.84 <-> 8.8', '15.53 <-> 16.6', '13.31 <-> 12.8', '15.06 <-> 15.7', '18.2 <-> 14.2', '20.79 <-> 18.8', '17.83 <-> 7.2', '17.3 <-> 18.1', '23.89 <-> 20.1', '31.28 <-> 30.7', '28.34 <-> 25.0', '37.93 <-> 44.8', '19.41 <-> 19.6', '31.64 <-> 30.8', '24.29 <-> 21.9', '20.8 <-> 21.1', '26.59 <-> 22.6', '18.92 <-> 16.1', '11.14 <-> 23.1', '29.06 <-> 24.3', '19.42 <-> 19.9', '28.08 <-> 26.6', '19.57 <-> 18.5', '23.38 <-> 20.8', '31.75 <-> 29.1', '19.02 <-> 19.9', '16.33 <-> 10.2', '13.49 <-> 13.9', '31.83 <-> 32.2', '18.45 <-> 14.1', '22.58 <-> 21.1', '25.35 <-> 24.0', '22.45 <-> 23.2', '18.19 <-> 12.6', '31.94 <-> 33.2', '14.28 <-> 11.0', '20.39 <-> 20.4', '25.91 <-> 22.2', '6.53 <-> 13.8', '16.54 <-> 19.3', '22.86 <-> 24.4', '27.21 <-> 20.6', '8.8 <-> 8.7', '17.42 <-> 19.4', '36.52 <-> 50.0', '25.27 <-> 50.0', '43.27 <-> 50.0', '30.55 <-> 29.1', '21.21 <-> 19.3', '34.77 <-> 43.8', '24.03 <-> 22.2', '18.04 <-> 22.5', '29.36 <-> 25.0', '34.55 <-> 35.2', '33.86 <-> 32.0', '34.35 <-> 35.4', '26.96 <-> 22.1', '14.72 <-> 14.8', '22.3 <-> 22.0', '21.31 <-> 19.6', '28.57 <-> 24.4']
模型的得分:0.7799984355156543