# binarize

### cuml.preprocessing.binarize(X, , threshold=0.0, copy=True)[[source]](https://github.com/NVIDIA/cuml/blob/93418baf5/python/cuml/cuml/_thirdparty/sklearn/preprocessing/_data.py#L1981)

Boolean thresholding of array-like or sparse matrix

* **Parameters:**
  **X**
  : The data to binarize, element by element.

  **threshold**
  : Feature values below or equal to this are replaced by 0, above it by 1.
    Threshold may not be less than 0 for operations on sparse matrices.

  **copy**
  : Whether a forced copy will be triggered. If copy=False, a copy might
    be triggered by a conversion.

#### SEE ALSO
[`Binarizer`](../cuml.preprocessing.Binarizer/index.html.md#cuml.preprocessing.Binarizer)
: Performs binarization using the `Transformer` API

<!-- !! processed by numpydoc !! -->
