Node.py
def is_loss_valid(self, mutation_id=None):
        """ Checks if current node mutation is valid up until the root node """
        if mutation_id is None:
            mutation_id = self.mutation_id
        for par in self.iter_ancestors():
            if par.mutation_id == mutation_id:
                return True
        return False
 Checks if current node mutation is valid up until the root node 
Checks if current node mutation is valid up until the root node
Checks if current node mutation is valid up until the root node
def is_loss_valid(self, mutation_id=None):
        if mutation_id is None:
            mutation_id = self.mutation_id
        for par in self.iter_ancestors():
            if par.mutation_id == mutation_id:
                return True
        return False
def is_loss_valid ( self , mutation_id = None ) : if mutation_id is None : mutation_id = self . mutation_id for par in self . iter_ancestors ( ) : if par . mutation_id == mutation_id : return True return False
Checks if current node mutation is valid up until the root node
Checks if current node mutation is valid up until the root node
""" Checks if current node mutation is valid up until the root node """
self
mutation_id