# add_dummy_feature

### cuml.preprocessing.add_dummy_feature(X, value=1.0)[[source]](https://github.com/NVIDIA/cuml/blob/93418baf5/python/cuml/cuml/_thirdparty/sklearn/preprocessing/_data.py#L2119)

Augment dataset with an additional dummy feature.

This is useful for fitting an intercept term with implementations which
cannot otherwise fit it directly.

* **Parameters:**
  **X**
  : Data.

  **value**
  : Value to use for the dummy feature.
* **Returns:**
  **X**
  : Same data with dummy feature added as first column.

### Examples

```pycon
>>> from cuml.preprocessing import add_dummy_feature
>>> import cupy as cp
>>> add_dummy_feature(cp.array([[0, 1], [1, 0]]))
array([[1., 0., 1.],
       [1., 1., 0.]])
```

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