Skip to content

Commit

Permalink
[MLlib]delete the "train" function
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
ljzzju committed Dec 30, 2014
1 parent 040d6f2 commit 4e13133
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4e13133

Please sign in to comment.