src/orion/core/worker/transformer.py
def interval(self, alpha=1.0):
        """Return the interval for the one-hot encoding in proper shape."""
        if self.num_cats == 2:
            return 0, 1
        else:
            low = numpy.zeros(self.num_cats)
            high = numpy.ones(self.num_cats)

            return low, high
Return the interval for the one-hot encoding in proper shape.
Return the interval for the one-hot encoding in proper shape.
Return the interval for the one - hot encoding in proper shape .
def interval(self, alpha=1.0):
        if self.num_cats == 2:
            return 0, 1
        else:
            low = numpy.zeros(self.num_cats)
            high = numpy.ones(self.num_cats)
            return low, high
def interval ( self , alpha = 1.0 ) : if self . num_cats == 2 : return 0 , 1 else : low = numpy . zeros ( self . num_cats ) high = numpy . ones ( self . num_cats ) return low , high
Return the interval for the one-hot encoding in proper shape.
Return the interval for the one - hot encoding in proper shape .
"""Return the interval for the one-hot encoding in proper shape."""
self
alpha