diff --git a/main_yuanyou_zhoudu.py b/main_yuanyou_zhoudu.py index e8ae623..a131597 100644 --- a/main_yuanyou_zhoudu.py +++ b/main_yuanyou_zhoudu.py @@ -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) # 计算每个预测值与真实值之间的偏差率