Repository: spark
Updated Branches:
  refs/heads/master 6a8978294 -> 035bac88c


[SPARK-4998][MLlib]delete the "train" function

To make the functions with the same in "object" effective, specially when using 
java reflection.
As the "train" function defined in "class DecisionTree" will hide the functions 
with the same name in "object DecisionTree".

JIRA[SPARK-4998]

Author: Liu Jiongzhou <ljz...@163.com>

Closes #3836 from ljzzju/master and squashes the following commits:

4e13133 [Liu Jiongzhou] [MLlib]delete the "train" function


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

Branch: refs/heads/master
Commit: 035bac88c732247c79a1bbad4f9191090cbbdc9a
Parents: 6a89782
Author: Liu Jiongzhou <ljz...@163.com>
Authored: Tue Dec 30 15:55:56 2014 -0800
Committer: Xiangrui Meng <m...@databricks.com>
Committed: Tue Dec 30 15:55:56 2014 -0800

----------------------------------------------------------------------
 .../main/scala/org/apache/spark/mllib/tree/DecisionTree.scala | 7 -------
 1 file changed, 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/035bac88/mllib/src/main/scala/org/apache/spark/mllib/tree/DecisionTree.scala
----------------------------------------------------------------------
diff --git 
a/mllib/src/main/scala/org/apache/spark/mllib/tree/DecisionTree.scala 
b/mllib/src/main/scala/org/apache/spark/mllib/tree/DecisionTree.scala
index 73e7e32..b3e8ed9 100644
--- a/mllib/src/main/scala/org/apache/spark/mllib/tree/DecisionTree.scala
+++ b/mllib/src/main/scala/org/apache/spark/mllib/tree/DecisionTree.scala
@@ -64,13 +64,6 @@ class DecisionTree (private val strategy: Strategy) extends 
Serializable with Lo
     val rfModel = rf.run(input)
     rfModel.trees(0)
   }
-
-  /**
-   * Trains a decision tree model over an RDD. This is deprecated because it 
hides the static
-   * methods with the same name in Java.
-   */
-  @deprecated("Please use DecisionTree.run instead.", "1.2.0")
-  def train(input: RDD[LabeledPoint]): DecisionTreeModel = run(input)
 }
 
 object DecisionTree extends Serializable with Logging {


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

Reply via email to