From 895ef2017d668b48404e14a2a414d0eb3bb8cf87 Mon Sep 17 00:00:00 2001 From: WeichenXu Date: Thu, 11 Jan 2018 16:41:19 -0800 Subject: [PATCH 1/2] init pr --- python/pyspark/ml/feature.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/pyspark/ml/feature.py b/python/pyspark/ml/feature.py index b963e45dd7cff..acec2a104718a 100755 --- a/python/pyspark/ml/feature.py +++ b/python/pyspark/ml/feature.py @@ -1577,6 +1577,8 @@ class OneHotEncoder(JavaTransformer, HasInputCol, HasOutputCol, JavaMLReadable, .. note:: This is different from scikit-learn's OneHotEncoder, which keeps all categories. The output vectors are sparse. + Deprecated in 2.3.0. ``OneHotEncoderEstimator`` will be renamed ``OneHotEncoder`` and this + ``OneHotEncoder`` will be removed in 3.0.0.. .. seealso:: From 1a77869cbd1840200341f008f9f097f9a6e12c08 Mon Sep 17 00:00:00 2001 From: WeichenXu Date: Thu, 11 Jan 2018 17:01:08 -0800 Subject: [PATCH 2/2] address comments --- python/pyspark/ml/feature.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/pyspark/ml/feature.py b/python/pyspark/ml/feature.py index acec2a104718a..eb79b193103e2 100755 --- a/python/pyspark/ml/feature.py +++ b/python/pyspark/ml/feature.py @@ -1577,8 +1577,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. - Deprecated in 2.3.0. ``OneHotEncoderEstimator`` will be renamed ``OneHotEncoder`` and this - ``OneHotEncoder`` will be removed in 3.0.0.. + + .. 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::