Github user noel-smith commented on a diff in the pull request:

    https://github.com/apache/spark/pull/8685#discussion_r39560663
  
    --- Diff: python/pyspark/mllib/tree.py ---
    @@ -90,16 +101,23 @@ def predict(self, x):
             else:
                 return self.call("predict", _convert_to_vector(x))
     
    +    @since("1.1.0")
         def numNodes(self):
    +        """Get number of nodes in tree, including leaf nodes."""
             return self._java_model.numNodes()
     
    +    @since("1.1.0")
         def depth(self):
    +        """Get depth of tree.
    +        E.g.: Depth 0 means 1 leaf node.  Depth 1 means 1 internal node 
and 2 leaf nodes.
    +        """
             return self._java_model.depth()
     
         def __repr__(self):
             """ summary of model. """
             return self._java_model.toString()
     
    +    @since("1.3.0")
    --- End diff --
    
    This is from 1.2.0


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to