sklearn.utils.safe_mask
-
sklearn.utils.safe_mask(X, mask)
[source] -
Return a mask which is safe to use on X.
- Parameters
-
-
X{array-like, sparse matrix}
-
Data on which to apply mask.
-
maskndarray
-
Mask to be used on X.
-
- Returns
-
- mask
© 2007–2020 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/0.24/modules/generated/sklearn.utils.safe_mask.html