Github user jkbradley commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2708#discussion_r18606370
  
    --- Diff: mllib/src/main/scala/org/apache/spark/mllib/tree/model/Node.scala 
---
    @@ -170,7 +173,27 @@ private[tree] object Node {
       /**
        * Return a node with the given node id (but nothing else set).
        */
    -  def emptyNode(nodeIndex: Int): Node = new Node(nodeIndex, 0, false, 
None, None, None, None)
    +  def emptyNode(nodeIndex: Int): Node = new Node(nodeIndex, new 
Predict(Double.MinValue), -1.0,
    +    false, None, None, None, None)
    +
    +  /**
    +   * Construct a node with nodeIndex, predict, impurity and isLeaf 
parameters.
    +   * This is used in `DecisionTree.findBestSplits` to construct child nodes
    +   * after find best splits for each node.
    --- End diff --
    
    "after find best splits for each node" --> "after finding the best splits 
for parent nodes"


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to