问题:
1、运行代码,分母为0报错,说rr1为0
解决:
使用if…else…解决问题
if rr1 == 0:
r11 = 0
RMSE3_test=0
else:
r11 = rr / rr1
RMSE3_test = RMSE1_test / rr1