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.
pub fn softmax_array<T: Float>(values: &ArrayView1<'_, T>) -> Array1<T>Numerically stable softmax for an ndarray 1-D array.
Subtracts the maximum before exponentiation to prevent overflow.