原油周度,周一模型名称列表取值更改

This commit is contained in:
jingboyitiji 2025-03-25 10:39:43 +08:00
parent 7cf3cda87a
commit 308e831468

View File

@ -301,7 +301,7 @@ def predict_main():
thresh=len(model_results)*0.1, axis=1)
# 删除空行
model_results = model_results.dropna()
modelnames = model_results.columns.to_list()[2:-1]
modelnames = model_results.columns.to_list()[2:-2]
for col in model_results[modelnames].select_dtypes(include=['object']).columns:
model_results[col] = model_results[col].astype(np.float32)
# 计算每个预测值与真实值之间的偏差率