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
-
-
yarray-like
-
warnbool, default=False
-
To control display of warnings.
-
- Returns
-
-
yndarray
-
© 2007–2020 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/0.24/modules/generated/sklearn.utils.validation.column_or_1d.html