输入八个数字想计算均方根误差为什么出现错误


y1 = list(map(int, input().split()))
y2 = list(map(int, input().split()))
def get_rmse(y1, y2):

    mse = get_mse(y1, y2)
    if mse:
        return math.sqrt(mse)
    else:
        return None
print(get_rmse(y1,y2))

img

img


img

get_mse------>>>get_rmse