Toggle Menu
Prev Up Next

scikit-learn 1.3.2
Other versions

Please cite us if you use the software.

# `sklearn.utils`.safe_mask

sklearn.utils.safe_mask(X, mask)

  Return a mask which is safe to use on X.

  Parameters:
    X{array-like, sparse matrix}

      Data on which to apply mask.

    mask ndarray

      Mask to be used on X.

  Returns:
    mask ndarray

      Array that is safe to use on X.