W3cubDocs

/scikit-learn

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.

mask : array

Mask to be used on X.

Returns:
mask

© 2007–2018 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.utils.safe_mask.html