Skip to main content

softmax_array

Function softmax_array 

Source
pub fn softmax_array<T: Float>(values: &ArrayView1<'_, T>) -> Array1<T>
Expand description

Numerically stable softmax for an ndarray 1-D array.

Subtracts the maximum before exponentiation to prevent overflow.