def check_enough_min_samples_for_sampling()

in src/smote_variants.py [0:0]


    def check_enough_min_samples_for_sampling(self, threshold=2):
        if self.class_stats[self.min_label] < threshold:
            m = "The number of minority samples (%d) is not enough " "for sampling"
            m = m % self.class_stats[self.min_label]
            _logger.warning(self.__class__.__name__ + ": " + m)
            return False
        return True