(x)
return np.asarray(x) / denominator
Transforms a list of f1 to a probability distribution. 
    
    :param x: a list of f1 scores
    :return: a probability distribution
    >>> f1_to_dist([0.28571,0.0,0.0,0.0])
    array([ 1.,  0.,  0.,  0.])
    >>> f1_to_dist([0.28571,0.18,0.0,0.0])
    array([ 0.61349338,  0.38650662,  0.        ,  0.        ])
Transforms a list of f1 to a probability distribution. 
    
    :param x: a list of f1 scores
    :return: a probability distribution
    >>> f1_to_dist([0.28571,0.0,0.0,0.0])
    array([ 1.,  0.,  0.,  0.])
    >>> f1_to_dist([0.28571,0.18,0.0,0.0])
    array([ 0.61349338,  0.38650662,  0.        ,  0.        ])
Transforms a list of f1 to a probability distribution . : param x : a list of f1 scores : return : a probability distribution >>> f1_to_dist ( [ 0 . 28571 0 . 0 0 . 0 0 . 0 ] ) array ( [ 1 . 0 . 0 . 0 . ] ) >>> f1_to_dist ( [ 0 . 28571 0 . 18 0 . 0 0 . 0 ] ) array ( [ 0 . 61349338 0 . 38650662 0 . 0 . ] )
def f1_to_dist(x):
    """
    Transforms a list of f1 to a probability distribution. 
    
    :param x: a list of f1 scores
    :return: a probability distribution
    >>> f1_to_dist([0.28571,0.0,0.0,0.0])
    array([ 1.,  0.,  0.,  0.])
    >>> f1_to_dist([0.28571,0.18,0.0,0.0])
    array([ 0.61349338,  0.38650662,  0.        ,  0.        ])
    """
    denominator = np.sum(x)
    return np.asarray(x) / denominator
def f1_to_dist ( x ) : denominator = np . sum ( x ) return np . asarray ( x ) / denominator