src/orion/core/worker/transformer.py
def transform(self, point):
        """Cast `point` to the floor and then to integers, as numpy arrays."""
        quantized = numpy.floor(numpy.asarray(point)).astype(int)

        if numpy.any(numpy.isinf(point)):
            isinf = int(numpy.isinf(point))
            quantized = (
                isinf * (quantized - 1) * int(numpy.sign(point))
                + (1 - isinf) * (quantized - 1)
            ).astype(int)

        return quantized
Cast `point` to the floor and then to integers, as numpy arrays.
Cast `point` to the floor and then to integers, as numpy arrays.
Cast ` point ` to the floor and then to integers as numpy arrays .
def transform(self, point):
        quantized = numpy.floor(numpy.asarray(point)).astype(int)
        if numpy.any(numpy.isinf(point)):
            isinf = int(numpy.isinf(point))
            quantized = (
                isinf * (quantized - 1) * int(numpy.sign(point))
                + (1 - isinf) * (quantized - 1)
            ).astype(int)
        return quantized
def transform ( self , point ) : quantized = numpy . floor ( numpy . asarray ( point ) ) . astype ( int ) if numpy . any ( numpy . isinf ( point ) ) : isinf = int ( numpy . isinf ( point ) ) quantized = ( isinf * ( quantized - 1 ) * int ( numpy . sign ( point ) ) + ( 1 - isinf ) * ( quantized - 1 ) ) . astype ( int ) return quantized
Cast `point` to the floor and then to integers, as numpy arrays.
Cast ` point ` to the floor and then to integers as numpy arrays .
"""Cast `point` to the floor and then to integers, as numpy arrays."""
self
point