Skip to main content

log_softmax

Function log_softmax 

Source
pub fn log_softmax(xs: &[f64]) -> Vec<f64>
Expand description

Compute the logarithm of the softmax function

Pure Rust translation of scipy.special.log_softmax.

§Notes

log_softmax is more accurate than taking the log of softmax with inputs that make softmax saturate.

§See also