softmax

softmax(x, beta=20)[source]

Computes the softmax of vector x.

Parameters:
  • x (np.ndarray) – Input vector to softmax.

  • beta (int) – Beta coefficient to scale steepness of softmax.

Returns:

Output vector of softmax.

Return type:

np.ndarray