utils/clusterer.py
def contains(self, value):
        """Check if the value falls into any existing cluster."""
        for low, high in self.clusters:
            if value >= low and value <= high:
                return True

        return False
Check if the value falls into any existing cluster.
Check if the value falls into any existing cluster.
Check if the value falls into any existing cluster .
def contains(self, value):
        for low, high in self.clusters:
            if value >= low and value <= high:
                return True
        return False
def contains ( self , value ) : for low , high in self . clusters : if value >= low and value <= high : return True return False
Check if the value falls into any existing cluster.
Check if the value falls into any existing cluster .
"""Check if the value falls into any existing cluster."""
self
value