(self)
return False
Determine whether termination conditions have been met,
            if so,return True.
Determine whether termination conditions have been met,
            if so,return True.
Determine whether termination conditions have been met if so return True .
def is_stop(self):
        """
            Determine whether termination conditions have been met,
            if so,return True.
        """
        if self._current_unlabel == 0:
            return True
        elif self._stopping_criteria == 'num_of_queries':
            if self._current_iter >= self.value:
                return True
            else:
                return False
        elif self._stopping_criteria == 'cost_limit':
            if self._accum_cost >= self.value:
                return True
            else:
                return False
        elif self._stopping_criteria == 'percent_of_unlabel':
            if self.value > 1 or self.value < 0:
                raise ValueError("Value of percent_of_unlabel should in [0, 1].")
            if self._percent >= self.value:
                return True
            else:
                return False
        elif self._stopping_criteria == 'time_limit':
            if time.perf_counter() - self._start_time >= self.value:
                return True
            else:
                return False
        return False
def is_stop ( self ) : if self . _current_unlabel == 0 : return True elif self . _stopping_criteria == 'num_of_queries' : if self . _current_iter >= self . value : return True else : return False elif self . _stopping_criteria == 'cost_limit' : if self . _accum_cost >= self . value : return True else : return False elif self . _stopping_criteria == 'percent_of_unlabel' : if self . value > 1 or self . value < 0 : raise ValueError ( "Value of percent_of_unlabel should in [0, 1]." ) if self . _percent >= self . value : return True else : return False elif self . _stopping_criteria == 'time_limit' : if time . perf_counter ( ) - self . _start_time >= self . value : return True else : return False return False