def softmax()
in
utils.py [0:0]
5
lines of code
1
McCabe index (conditional complexity)
def softmax(x): x = x - np.max(x) x = np.exp(x) x = x / np.sum(x) return x