变压器
计算机科学
工程类
可靠性工程
电气工程
电压
作者
Chaobo Zhang,Jian Zhang,Yang Zhao,Jie Lu
出处
期刊:Energy
[Elsevier BV]
日期:2025-02-02
卷期号:318: 134824-134824
被引量:14
标识
DOI:10.1016/j.energy.2025.134824
摘要
Generative pre-trained transformers (GPT) have shown remarkable capabilities in automated code generation for data-driven building energy load prediction scenarios, leading to substantial savings in time and costs. However, it is quite difficult for inexperienced users to provide high-quality prompts to GPT for generating satisfactory codes. To address this challenge, a GPT-based automated data-driven building energy load forecasting method is proposed in this study. Prompting functions are designed to automatically generate prompts for model training and deployment. Bayesian optimization is utilized to optimize the prompting functions for improving the prediction accuracy of GPT-generated codes. External knowledge bases are developed to improve the code correctness of GPT by adding additional knowledge to prompts. Furthermore, a self-correction strategy is designed to enable GPT to automatically correct errors in GPT-generated codes. This method is employed to forecast the energy loads of two real buildings for performance evaluation. GPT-3.5 is utilized in the evaluation process. The codes generated by this method exhibit high prediction accuracy, achieving an average R2 of 0.95 for the two buildings. The code correctness of GPT-3.5 is increased by an average of 90.0 % by using the external knowledge bases. Moreover, the self-correction strategy effectively corrects some unpredictable mistakes made by GPT-3.5.
科研通智能强力驱动
Strongly Powered by AbleSci AI