(x)
return np.exp(x) / np.sum(np.exp(x))
Compute softmax non-linearity on a vector

    :param x: vector input
    :return: vector output of the same dimension
Compute softmax non-linearity on a vector
Compute softmax non - linearity on a vector
def softmax(x):
    """
    Compute softmax non-linearity on a vector

    :param x: vector input
    :return: vector output of the same dimension
    """
    return np.exp(x) / np.sum(np.exp(x))
def softmax ( x ) : return np . exp ( x ) / np . sum ( np . exp ( x ) )