<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def softmax(xs):
 """Stable implementation of the softmax function."""

    ys = xs - np.max(xs)
    exps = np.exp(ys)
    return exps / exps.sum(axis=0)