parameters: (self)
return_statement: return int(self.nodes['is_leaf'].sum())
docstring: Return number of leaves.
docstring_summary: Return number of leaves.
docstring_tokens: Return number of leaves .
function: def get_n_leaf_nodes(self):
          """Return number of leaves."""
          return int(self.nodes['is_leaf'].sum())
function_tokens: def get_n_leaf_nodes ( self ) : return int ( self . nodes [ 'is_leaf' ] . sum ( ) )