def softmax(x):
        """
        Calculates the softmax of x

        :param x: a number
        :return: the softmax of the number
        """
        e_x = np.exp(x - np.max(x))
        out = e_x / e_x.sum()
        return out

        Calculates the softmax of x

        :param x: a number
        :return: the softmax of the number
        
plato/agent/component/dialogue_policy/deep_learning/reinforce_policy.py