(self)
return can_rank
Refuse ranking if there are no features or instances.
Refuse ranking if there are no features or instances.
Refuse ranking if there are no features or instances .
def check_preconditions(self):
        """Refuse ranking if there are no features or instances."""
        can_rank = self.master.data is not None and \
            self.master.data.domain.attributes and \
            len(self.master.data) != 0
        self.Information.nothing_to_rank(shown=not can_rank)
        return can_rank
def check_preconditions ( self ) : can_rank = self . master . data is not None and self . master . data . domain . attributes and len ( self . master . data ) != 0 self . Information . nothing_to_rank ( shown = not can_rank ) return can_rank