def zero_one_loss(f_x,y_true):
    """
    Compute the zero-one loss given the returned value f_x from 
        a linear discrimination function on the feature x and its label y
    """
    if f_x*y_true>=0:
        return 0
    else:
        return 1