spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkbrad...@apache.org
Subject spark git commit: [MINOR][MLLIB] deprecate setLabelCol in ChiSqSelectorModel
Date Wed, 22 Jun 2016 03:53:53 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-2.0 77d8226df -> f3a2ebe0b


[MINOR][MLLIB] deprecate setLabelCol in ChiSqSelectorModel

## What changes were proposed in this pull request?

Deprecate `labelCol`, which is not used by ChiSqSelectorModel.

Author: Xiangrui Meng <meng@databricks.com>

Closes #13823 from mengxr/deprecate-setLabelCol-in-ChiSqSelectorModel.

(cherry picked from commit d77c4e6e2eef24f4276c38b3add8c29bb885f4db)
Signed-off-by: Joseph K. Bradley <joseph@databricks.com>


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

Branch: refs/heads/branch-2.0
Commit: f3a2ebe0bcac6d6d3b370ce66b5458e55b7e884d
Parents: 77d8226
Author: Xiangrui Meng <meng@databricks.com>
Authored: Tue Jun 21 20:53:38 2016 -0700
Committer: Joseph K. Bradley <joseph@databricks.com>
Committed: Tue Jun 21 20:53:48 2016 -0700

----------------------------------------------------------------------
 .../src/main/scala/org/apache/spark/ml/feature/ChiSqSelector.scala  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/f3a2ebe0/mllib/src/main/scala/org/apache/spark/ml/feature/ChiSqSelector.scala
----------------------------------------------------------------------
diff --git a/mllib/src/main/scala/org/apache/spark/ml/feature/ChiSqSelector.scala b/mllib/src/main/scala/org/apache/spark/ml/feature/ChiSqSelector.scala
index 1c32926..33723287 100644
--- a/mllib/src/main/scala/org/apache/spark/ml/feature/ChiSqSelector.scala
+++ b/mllib/src/main/scala/org/apache/spark/ml/feature/ChiSqSelector.scala
@@ -142,6 +142,7 @@ final class ChiSqSelectorModel private[ml] (
 
   /** @group setParam */
   @Since("1.6.0")
+  @deprecated("labelCol is not used by ChiSqSelectorModel.", "2.0.0")
   def setLabelCol(value: String): this.type = set(labelCol, value)
 
   @Since("2.0.0")


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


Mime
View raw message