Skip to main content

argmax

Function argmax 

Source
pub fn argmax(scores: &ArrayView1<'_, f32>) -> Result<(usize, f32)>
Expand description

Single argmax: returns (index, score) of the largest element. Ties broken by ascending index. Errors on empty input.