Skip to content

Commit d4d7864

Browse files
committed
Marked Node.build as deprecated
1 parent d4dbb99 commit d4d7864

File tree

1 file changed

+2
-0
lines changed
  • mllib/src/main/scala/org/apache/spark/mllib/tree/model

1 file changed

+2
-0
lines changed

mllib/src/main/scala/org/apache/spark/mllib/tree/model/Node.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ class Node (
5555
* build the left node and right nodes if not leaf
5656
* @param nodes array of nodes
5757
*/
58+
@deprecated("build should no longer be used since trees are constructed on-the-fly in training",
59+
"1.2.0")
5860
def build(nodes: Array[Node]): Unit = {
5961
logDebug("building node " + id + " at level " + Node.indexToLevel(id))
6062
logDebug("id = " + id + ", split = " + split)

0 commit comments

Comments
 (0)