Node.py
def to_json(self):
        """
            Returns a json string representing the current tree
        """
        node = {"name": self.name, "uid": self.uid, "loss": self.loss, "root": True, "children": []}
        for n in self.children:
            node["children"].append(n._to_json_children())
        return json.dumps(node, indent=4)

            Returns a json string representing the current tree
        
Returns a json string representing the current tree
Returns a json string representing the current tree
def to_json(self):
        node = {"name": self.name, "uid": self.uid, "loss": self.loss, "root": True, "children": []}
        for n in self.children:
            node["children"].append(n._to_json_children())
        return json.dumps(node, indent=4)
def to_json ( self ) : node = { "name" : self . name , "uid" : self . uid , "loss" : self . loss , "root" : True , "children" : [ ] } for n in self . children : node [ "children" ] . append ( n . _to_json_children ( ) ) return json . dumps ( node , indent = 4 )
Returns a json string representing the current tree
Returns a json string representing the current tree
"""
            Returns a json string representing the current tree
        """
self