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 [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