copapy.nn.softmax#

copapy.nn.softmax(x)#

Softmax function: maps the elements to the range (0, 1) with a sum of 1, larger elements get a larger share (probabilities of a classification).

Parameters:

x (TVec) – 1D vector, tensor or array

Return type:

TVec

Returns:

Float vector, tensor or array (same type as x) of the same length.