sklearn.utils.validation.column_or_1d

sklearn.utils.validation.column_or_1d(y, warn=False)[source]

Ravel column or 1d numpy array, else raises an error

Parameters:

y : array-like

warn : boolean, default False

To control display of warnings.

Returns:

y : array