2016年2月1日星期一

[UDACITY] Deep Learning: L1 Machine Learning to Deep Learning

Softmax

softmax function in python: https://gist.github.com/stober/1946926

def softmax(x):
    """Compute softmax values for each sets of scores in x."""
    e = np.exp(x)
    dist = e / np.sum(e, axis=0) """Don't forget to specify axis=0"""
    return dist