<filename>softmax.py<gh_stars>0
import numpy as np

# Write a function that takes as input a list of numbers, and returns
# the list of values given by the softmax function.
def softmax(L):
    exp = np.exp(L)
    denominator = np.sum(exp)
    probabilities = exp/denominator
    return probabilities

<filename>softmax.py<gh_stars>0
import numpy as np

# Write a function that takes as input a list of numbers, and returns
# the list of values given by the softmax function.
def softmax(L):
    exp = np.exp(L)
    denominator = np.sum(exp)
    probabilities = exp/denominator
    return probabilities

# Write a function that takes as input a list of numbers, and returns # the list of values given by the softmax function.