Skip to content

Commit

Permalink
[SPARK-23008][ML][FOLLOW-UP] mark OneHotEncoder python API deprecated
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?

mark OneHotEncoder python API deprecated

## How was this patch tested?

N/A

Author: WeichenXu <[email protected]>

Closes apache#20241 from WeichenXu123/mark_ohe_deprecated.
  • Loading branch information
WeichenXu123 authored and Nick Pentreath committed Jan 12, 2018
1 parent cbe7c6f commit a7d98d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/pyspark/ml/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -1578,6 +1578,9 @@ class OneHotEncoder(JavaTransformer, HasInputCol, HasOutputCol, JavaMLReadable,
.. note:: This is different from scikit-learn's OneHotEncoder,
which keeps all categories. The output vectors are sparse.
.. note:: Deprecated in 2.3.0. :py:class:`OneHotEncoderEstimator` will be renamed to
:py:class:`OneHotEncoder` and this :py:class:`OneHotEncoder` will be removed in 3.0.0.
.. seealso::
:py:class:`StringIndexer` for converting categorical values into
Expand Down

0 comments on commit a7d98d5

Please sign in to comment.