def sign(x):
    """
    Return 1, 0, or -1 depending on the sign of x
    """
    if x > 0.0:
        return 1
    elif x == 0.0:
        return 0
    else:
        return -1
dataset/ETHPy150Open rll/lfd/lfd/rapprentice/util.py/sign/original