(self)
return can_rank
Refuse ranking if there are less than two feature or instances.
Refuse ranking if there are less than two feature or instances.
Refuse ranking if there are less than two feature or instances .
def check_preconditions(self):
        """Refuse ranking if there are less than two feature or instances."""
        can_rank = self.master.data is not None and \
            len(self.master.data.domain.attributes) >= 2 and \
            len(self.master.data) >= 2
        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 len ( self . master . data . domain . attributes ) >= 2 and len ( self . master . data ) >= 2 self . Information . nothing_to_rank ( shown = not can_rank ) return can_rank