This should be more explicit: "y_pred should be an array of floats"