oa::ml::training::AccuracyMetric
Device-resident training accuracy for classification steps. The metric owns a persistent accumulator: each AccuracyObserver::observe call inside the step’s record closure records the correctness count, its cast, and its accumulation — operations that capture into the training program and execute on every replay, so no per-step accuracy readback exists. The single observation is one readback per epoch boundary inside commit_epoch. Epoch isolation is exact cumulative differencing of both the device correct-count and the lifecycle’s exact sample accounting; integer counts in F32 are exact far beyond any training run (2^24 samples), so the counter never resets.
Declaration
pub struct AccuracyMetric { /* private fields */ }Public Rust declaration.
Public Methods
Associated Functions
Public Method Documentation
No public source comment is attached to this declaration.
Observe one batch’s prediction and target inside a managed fit. Read more
Observe one batch’s prediction and target inside a managed fit. Read more
Observe one batch’s prediction and target inside a managed fit. Read more
Observe one batch’s prediction and target inside a managed fit. Read more
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.