oa::ml::metric::TopKAccuracy
Additive top-k correct/sample counters. A sample is correct when its label’s logit is at least the k-th largest logit in its row — the inclusive boundary convention, so ties at the threshold count as correct and k ≥ classes is trivially perfect. Like the confusion counts, observation happens at the evaluation plane: logits and labels cross the host boundary once per evaluation batch and the ranking derivation runs host-side. The mergeable state is the same additive correct/samples pair categorical accuracy uses, so partitioned evaluation merges exactly.
Declaration
pub struct TopKAccuracy { /* private fields */ }Public Rust declaration.
Public Methods
Associated Functions
Public Method Documentation
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.