Repository: spark Updated Branches: refs/heads/master cbe7c6fbf -> a7d98d53c
[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. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/a7d98d53 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/a7d98d53 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/a7d98d53 Branch: refs/heads/master Commit: a7d98d53ceaf69cabaecc6c9113f17438c4e61f6 Parents: cbe7c6f 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:02 2018 +0200 ---------------------------------------------------------------------- python/pyspark/ml/feature.py | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/a7d98d53/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