Skip to main content

argmax_index

Function argmax_index 

Source
pub fn argmax_index(probabilities: &[f32]) -> Option<usize>
Expand description

Argmax with the profile tie-break (D6): the earliest index in canonical (insertion) order wins. Returns None on an empty slice.