I am implementing rmse for iris dataset when I am trying to calculate y_pred it gives an error. def fmodel(x): s=np.linspace(0,0,10) for i in range (len(x)): for j in range(