Skip to content

Commit 4e13133

Browse files
committed
[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]
1 parent 040d6f2 commit 4e13133

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

mllib/src/main/scala/org/apache/spark/mllib/tree/DecisionTree.scala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,6 @@ class DecisionTree (private val strategy: Strategy) extends Serializable with Lo
6464
val rfModel = rf.run(input)
6565
rfModel.trees(0)
6666
}
67-
68-
/**
69-
* Trains a decision tree model over an RDD. This is deprecated because it hides the static
70-
* methods with the same name in Java.
71-
*/
72-
@deprecated("Please use DecisionTree.run instead.", "1.2.0")
73-
def train(input: RDD[LabeledPoint]): DecisionTreeModel = run(input)
7467
}
7568

7669
object DecisionTree extends Serializable with Logging {

0 commit comments

Comments
 (0)