(self)
return is_increasing or is_decreasing
Check the woe is monotonic or not
Check the woe is monotonic or not
Check the woe is monotonic or not
def is_woe_monotonic(self):
        """
        Check the woe is monotonic or not
        """
        woe_array = self.woe_array
        if len(woe_array) <= 1:
            return True

        is_increasing = all(x <= y for x, y in zip(woe_array, woe_array[1:]))
        is_decreasing = all(x >= y for x, y in zip(woe_array, woe_array[1:]))
        return is_increasing or is_decreasing
def is_woe_monotonic ( self ) : woe_array = self . woe_array if len ( woe_array ) <= 1 : return True is_increasing = all ( x <= y for x , y in zip ( woe_array , woe_array [ 1 : ] ) ) is_decreasing = all ( x >= y for x , y in zip ( woe_array , woe_array [ 1 : ] ) ) return is_increasing or is_decreasing