(self)
return new_tree_
host is not allowed to get weights/g/h
host is not allowed to get weights/g/h
host is not allowed to get weights / g / h
def remove_sensitive_info(self):
        """
        host is not allowed to get weights/g/h
        """
        new_tree_ = copy.deepcopy(self.tree_node)
        for node in new_tree_:
            node.weight = None
            node.sum_grad = None
            node.sum_hess = None

        return new_tree_
def remove_sensitive_info ( self ) : new_tree_ = copy . deepcopy ( self . tree_node ) for node in new_tree_ : node . weight = None node . sum_grad = None node . sum_hess = None return new_tree_