import math


def logistic_loss(f_x,y_true):
    """
    Compute the logistic_loss loss given the returned value f_x from 
    a linear discrimination function on the feature x and its label y. 
    Please use  logarithm with base = 2 
    """
    return math.log(1+math.exp(-f_x*y_true),2)