""" Softmax converts a vector of values to a probability distribution.
Args:
z (ndarray (N,)) : input data, N features
Returns:
a (ndarray (N,)) : softmax of z
"""
### START CODE HERE ###
=
=
= 0
# loop over number of outputs
+= # sum exp(z[k]) to build the shared denominator
# loop over number of outputs again
= / # divide each the exp of each output by the denominator
return