ML之回归预测:利用13种机器学习算法对Boston(波士顿房价)数据集【13+1,506】进行回归预测(房价预测)来比较各模型性能


水杯冷傲
水杯冷傲 2022-09-19 15:18:52 49364
分类专栏: 资讯

ML之回归预测:利用13种机器学习算法对Boston(波士顿房价)数据集【13+1,506】进行回归预测(房价预测)来比较各模型性能

导读
通过利用13种机器学习算法,分别是LiR、kNN、SVR、DTR、RFR、SGDR、GBR、LGBR、XGBR算法,然后对Boston(波士顿房价)数据集,形状是【13+1,506】,进行回归预测(房价预测)来比较各模型性能,发现LGBR模型的性能最好。

相关文章
ML之回归预测:利用13种机器学习算法对Boston(波士顿房价)数据集【13+1,506】进行回归预测(房价预测)来比较各模型性能

目录

输出结果

设计思路


输出结果


新增第13种ML算法

  1. 数据的初步查验:输出回归目标值的差异
  2. The max target value is 50.0
  3. The min target value is 5.0
  4. The average target value is 22.532806324110677
  5. LiR:The value of default measurement of LiR is 0.6763403830998702
  6. LiR:R-squared value of DecisionTreeRegressor: 0.6763403830998702
  7. LiR:The mean squared error of DecisionTreeRegressor: 25.096985692067726
  8. LiR:The mean absoluate error of DecisionTreeRegressor: 3.5261239963985433
  9. kNNR_uni:The value of default measurement of kNNR_uni is 0.6903454564606561
  10. kNNR_uni:R-squared value of DecisionTreeRegressor: 0.6903454564606561
  11. kNNR_uni:The mean squared error of DecisionTreeRegressor: 24.01101417322835
  12. kNNR_uni:The mean absoluate error of DecisionTreeRegressor: 2.9680314960629928
  13. kNNR_dis:The value of default measurement of kNNR_dis is 0.7197589970156353
  14. kNNR_dis:R-squared value of DecisionTreeRegressor: 0.7197589970156353
  15. kNNR_dis:The mean squared error of DecisionTreeRegressor: 21.730250160926044
  16. kNNR_dis:The mean absoluate error of DecisionTreeRegressor: 2.8050568785108005
  17. linear_SVR:The value of default measurement of linear_SVR is 0.651717097429608
  18. linear_SVR:R-squared value of DecisionTreeRegressor: 0.651717097429608
  19. linear_SVR:The mean squared error of DecisionTreeRegressor: 27.0063071393243
  20. linear_SVR:The mean absoluate error of DecisionTreeRegressor: 3.426672916872753
  21. poly_SVR:The value of default measurement of poly_SVR is 0.40445405800289286
  22. poly_SVR:R-squared value of DecisionTreeRegressor: 0.4044540580028929
  23. poly_SVR:The mean squared error of DecisionTreeRegressor: 46.1794033139523
  24. poly_SVR:The mean absoluate error of DecisionTreeRegressor: 3.75205926674149
  25. rbf_SVR:The value of default measurement of rbf_SVR is 0.7564068912273935
  26. rbf_SVR:R-squared value of DecisionTreeRegressor: 0.7564068912273935
  27. rbf_SVR:The mean squared error of DecisionTreeRegressor: 18.888525000753493
  28. rbf_SVR:The mean absoluate error of DecisionTreeRegressor: 2.6075632979823276
  29. DTR:The value of default measurement of DTR is 0.699313885811367
  30. DTR:R-squared value of DecisionTreeRegressor: 0.699313885811367
  31. DTR:The mean squared error of DecisionTreeRegressor: 23.31559055118111
  32. DTR:The mean absoluate error of DecisionTreeRegressor: 3.1716535433070865
  33. RFR:The value of default measurement of RFR is 0.8320900865862684
  34. RFR:R-squared value of DecisionTreeRegressor: 0.8320900865862684
  35. RFR:The mean squared error of DecisionTreeRegressor: 13.019952055992995
  36. RFR:The mean absoluate error of DecisionTreeRegressor: 2.3392650918635174
  37. ETR:The value of default measurement of ETR is 0.7595247600325825
  38. ETR:R-squared value of DecisionTreeRegressor: 0.7595247600325824
  39. ETR:The mean squared error of DecisionTreeRegressor: 18.646761417322832
  40. ETR:The mean absoluate error of DecisionTreeRegressor: 2.5487401574803146
  41. SGDR:The value of default measurement of SGDR is 0.6525677025033261
  42. SGDR:R-squared value of DecisionTreeRegressor: 0.6525677025033261
  43. SGDR:The mean squared error of DecisionTreeRegressor: 26.940350120746693
  44. SGDR:The mean absoluate error of DecisionTreeRegressor: 3.524049659554681
  45. GBR:The value of default measurement of GBR is 0.8442966156976921
  46. GBR:R-squared value of DecisionTreeRegressor: 0.8442966156976921
  47. GBR:The mean squared error of DecisionTreeRegressor: 12.07344198657727
  48. GBR:The mean absoluate error of DecisionTreeRegressor: 2.2692783233003326
  49. [LightGBM] [Warning] feature_fraction is set=0.6, colsample_bytree=1.0 will be ignored. Current value: feature_fraction=0.6
  50. [LightGBM] [Warning] min_data_in_leaf is set=18, min_child_samples=20 will be ignored. Current value: min_data_in_leaf=18
  51. [LightGBM] [Warning] min_sum_hessian_in_leaf is set=0.001, min_child_weight=0.001 will be ignored. Current value: min_sum_hessian_in_leaf=0.001
  52. [LightGBM] [Warning] bagging_fraction is set=0.7, subsample=1.0 will be ignored. Current value: bagging_fraction=0.7
  53. LGBR:The value of default measurement of LGBR is 0.824979251097139
  54. LGBR:R-squared value of DecisionTreeRegressor: 0.824979251097139
  55. LGBR:The mean squared error of DecisionTreeRegressor: 13.5713354452417
  56. LGBR:The mean absoluate error of DecisionTreeRegressor: 2.3653297699911455
  57. [0.6763403830998702, 0.6903454564606561, 0.7197589970156353, 0.651717097429608, 0.40445405800289286, 0.7564068912273935, 0.699313885811367, 0.8320900865862684, 0.7595247600325825, 0.6525677025033261, 0.8442966156976921, 0.824979251097139]
  58. {'learning_rate': 0.09, 'max_depth': 4, 'n_estimators': 200}
  59. rmse: 0.37116076328428194
  60. XGBR_grid:The value of default measurement of XGBR_grid is -0.1355992935386311
  61. XGBR_grid:R-squared value of DecisionTreeRegressor: 0.8494067182200448
  62. XGBR_grid:The mean squared error of DecisionTreeRegressor: 11.67719810423491
  63. XGBR_grid:The mean absoluate error of DecisionTreeRegressor: 2.156086404304805

设计思路

网站声明:如果转载,请联系本站管理员。否则一切后果自行承担。

本文链接:https://www.xckfsq.com/news/show.html?id=3231
赞同 0
评论 0 条
水杯冷傲L0
粉丝 0 发表 8 + 关注 私信
上周热门
如何使用 StarRocks 管理和优化数据湖中的数据?  2966
【软件正版化】软件正版化工作要点  2885
统信UOS试玩黑神话:悟空  2855
信刻光盘安全隔离与信息交换系统  2743
镜舟科技与中启乘数科技达成战略合作,共筑数据服务新生态  1277
grub引导程序无法找到指定设备和分区  1244
华为全联接大会2024丨软通动力分论坛精彩议程抢先看!  169
2024海洋能源产业融合发展论坛暨博览会同期活动-海洋能源与数字化智能化论坛成功举办  168
点击报名 | 京东2025校招进校行程预告  164
华为纯血鸿蒙正式版9月底见!但Mate 70的内情还得接着挖...  161
本周热议
我的信创开放社区兼职赚钱历程 40
今天你签到了吗? 27
信创开放社区邀请他人注册的具体步骤如下 15
如何玩转信创开放社区—从小白进阶到专家 15
方德桌面操作系统 14
我有15积分有什么用? 13
用抖音玩法闯信创开放社区——用平台宣传企业产品服务 13
如何让你先人一步获得悬赏问题信息?(创作者必看) 12
2024中国信创产业发展大会暨中国信息科技创新与应用博览会 9
中央国家机关政府采购中心:应当将CPU、操作系统符合安全可靠测评要求纳入采购需求 8

加入交流群

请使用微信扫一扫!