Why use np.ravel?

Hi all,

Why we are using np.ravel in each params?

I assume these are just implementation details. It is to make sure that we have a 1D array of shape (n_samples,). If one of the variables is a dataframe column then it can be of shape (n_samples, 1) and the difference between the two variables would fail. np.ravel make sure that we have a consistent size.