oa::Metric
base class for all metrics. Follows the keras pattern: - update(): add a new batch of predictions/labels - reset(): clear accumulated state - result(): get the current metric value
Public Methods
Constructor & Destructor Documentation
Public Method Documentation
No public source comment is attached to this declaration.
Returns
boolThe declared return value.
No public source comment is attached to this declaration.
Returns
const char *The declared return value.
Render the metric to a buffer for progress bar display. inFirst: if true, don't prepend " · " separator.
Parameters
outBufferchar *—
inBufferSizeoa::I32—
inFirstbool—
Returns
oa::I32The declared return value.
No public source comment is attached to this declaration.
Returns
voidThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::F64The declared return value.
No public source comment is attached to this declaration.
Parameters
inPredsconst Matrix &—
inLabelsconst Matrix &—
Returns
voidThe declared return value.
Consume one completed training step.
Parameters
inLossoa::F32—
inHasLossbool—
inElapsedSecondsoa::F64—
inStepCountoa::I64—
Returns
voidThe declared return value.