(self)
return self.W.shape[-1] != 0
Return `True` if the data instances are weighed.
Return `True` if the data instances are weighed.
Return True if the data instances are weighed .
def has_weights(self):
        """Return `True` if the data instances are weighed. """
        return self.W.shape[-1] != 0
def has_weights ( self ) : return self . W . shape [ - 1 ] != 0