Repository: spark
Updated Branches:
  refs/heads/branch-2.3 3ae3e1bb7 -> d512d873b


[SPARK-23008][ML][FOLLOW-UP] mark OneHotEncoder python API deprecated

## What changes were proposed in this pull request?

mark OneHotEncoder python API deprecated

## How was this patch tested?

N/A

Author: WeichenXu <weichen...@databricks.com>

Closes #20241 from WeichenXu123/mark_ohe_deprecated.

(cherry picked from commit a7d98d53ceaf69cabaecc6c9113f17438c4e61f6)
Signed-off-by: Nick Pentreath <ni...@za.ibm.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/d512d873
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/d512d873
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/d512d873

Branch: refs/heads/branch-2.3
Commit: d512d873b3f445845bd113272d7158388427f8a6
Parents: 3ae3e1b
Author: WeichenXu <weichen...@databricks.com>
Authored: Fri Jan 12 11:27:02 2018 +0200
Committer: Nick Pentreath <ni...@za.ibm.com>
Committed: Fri Jan 12 11:27:59 2018 +0200

----------------------------------------------------------------------
 python/pyspark/ml/feature.py | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/d512d873/python/pyspark/ml/feature.py
----------------------------------------------------------------------
diff --git a/python/pyspark/ml/feature.py b/python/pyspark/ml/feature.py
index b963e45..eb79b19 100755
--- a/python/pyspark/ml/feature.py
+++ b/python/pyspark/ml/feature.py
@@ -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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to