基于Ames数据集的房价预测——模型比较与超参数优化
House Price Prediction Based on the Ames Dataset—Model Comparison and Hyperparameter Optimization
摘要: 房价受到多个因素的影响,对其的预测存在非线性、高维度及数据异方差性问题,本文基于Kaggle House Prices数据集,构建了一套包含线性模型、集成学习与核方法的多元回归预测框架。本研究选取支持向量回归(SVR)、随机森林(RandomForest)、XGBoost、LightGBM及弹性网络(ElasticNet)五种模型对房价进行预测。实验对每种模型采用5折交叉验证,以对数均方根误差(log-RMSE)、对数平均绝对误差(log-MAE)及决定系数(R2)作为评价指标。研究结果表明这五种模型中最优的是SVR,三个评价指标都是最优的。基于前面五种模型的对比,选取SVR模型进行调优,通过Optuna贝叶斯优化对SVR中的三个超参数进行调优后,模型性能进一步提升,log-RMSE降至0.1249,R2为0.8985,显著优于其他对比模型。
Abstract: House Prices are influenced by multiple factors, and there are problems of nonlinearity, high dimensionality and data heteroscedasticity in their prediction. Based on the Kaggle House Prices dataset, this paper constructs a multiple regression prediction framework including linear models, ensemble learning and kernel methods. This study selects five models, namely Support Vector Regression (SVR), RandomForest, XGBoost, LightGBM and ElasticNet, to predict housing prices. For each model in the experiment, 5-fold cross-validation was adopted, and the logarithmic root mean square error (log-RMSE), logarithmic mean absolute error (log-MAE), and coefficient of determination (R2) were used as evaluation indicators. The research results show that among these five models, SVR is the best, and all three evaluation indicators are optimal. Based on the comparison of the previous five models, the SVR model was selected for tuning. After tuning the three hyperparameters in SVR through Optuna Bayesian optimization, the model performance was further improved. log-RMSE dropped to 0.1249 and R2 was 0.8985, which was significantly better than other comparison models.
文章引用:周侥. 基于Ames数据集的房价预测——模型比较与超参数优化[J]. 国际会计前沿, 2026, 15(4): 1042-1051. https://doi.org/10.12677/fia.2026.154110

参考文献

[1] 李高荣. 统计学习(R语言版) [M]. 北京: 高等教育出版社, 2024.
[2] 牟凯文. 一种基于XGBoost回归与粒子群优化算法的大位移井钻速提升方法研究[J]. 石油地质与工程, 2026, 40(3): 115-121.
[3] 赵鹏. 基于LightGBM回归算法的山东半岛的降水量空间分布建模[J]. 水利技术监督, 2026(6): 212-215.
[4] 张鲁川, 李一博, 张雷, 等. 基于贝叶斯优化LightGBM算法的深层页岩储层分级评价[J]. 天然气地球科学, 2026, 37(4): 801-815.
[5] 王俊峰, 张宝雷, 刘金海, 等. 基于弹性网络回归的集输管线流体状态兰姆波测量辨识方法[J]. 天津科技, 2025, 52(8): 19-23+31.