oa::CbProgressBar

oa::CbProgressBar tqdm/keras-hybrid progress bar with `█`+`░` and rolling metrics: epoch 1/5 938/938 |██████████| 0.65s · 0.7 ms/step · 1.26M sample/s · accuracy: 0.9091 · loss: 0.2914 epoch 2/5 938/938 |██████████| 0.59s · 0.6 ms/step · 1.31M sample/s · accuracy: 0.9134 · loss: 0.1822 mid-epoch: 468/938 |█████░░░░░| 0.32s · 0.7 ms/step · 1.25M sample/s · loss: 0.3128 Per-step updates rewrite the same line via ` `; epoch end leaves the final line and starts a new one. Uses lastLoss() so per- step refresh never forces a Sync. Accuracy comes from recordAccuracy(); if the caller hasn't set it (NaN), the field is omitted. Wall time per step and workload throughput are shown instead of GPU time. Latency and rates are derived from the iterator's single workload definition; they are not metrics that callers must register separately.

Inheritance

public CbTraining · public Callback

Public Methods

void oa::CbProgressBar::addMetric(oa::Metric * inMetric)
void oa::CbProgressBar::onEpochBegin(oa::ItTraining & inIter)
void oa::CbProgressBar::onEpochEnd(oa::ItTraining & inIter)
void oa::CbProgressBar::onStepEnd(oa::ItTraining & inIter)
void oa::CbProgressBar::onTrainBegin(oa::ItTraining & inIter)
void oa::CbProgressBar::onTrainEnd(oa::ItTraining & inIter)
void oa::CbProgressBar::setShowEpochHeader(bool inShow)

Examples

Constructor & Destructor Documentation

oa::CbProgressBar::CbProgressBar( oa::I32 inBarWidth = 10 )
No public source comment is attached to this declaration.

Parameters

inBarWidth
oa::I32

Default: 10

Public Method Documentation

void oa::CbProgressBar::addMetric( oa::Metric * inMetric )
Add a metric to render in the progress bar. Non-owning pointer.

Parameters

inMetric
oa::Metric *

Returns

void

The declared return value.

void oa::CbProgressBar::onEpochBegin( oa::ItTraining & inIter )
No public source comment is attached to this declaration.

Parameters

inIter
oa::ItTraining &

Returns

void

The declared return value.

void oa::CbProgressBar::onEpochEnd( oa::ItTraining & inIter )
No public source comment is attached to this declaration.

Parameters

inIter
oa::ItTraining &

Returns

void

The declared return value.

void oa::CbProgressBar::onStepEnd( oa::ItTraining & inIter )
No public source comment is attached to this declaration.

Parameters

inIter
oa::ItTraining &

Returns

void

The declared return value.

void oa::CbProgressBar::onTrainBegin( oa::ItTraining & inIter )
No public source comment is attached to this declaration.

Parameters

inIter
oa::ItTraining &

Returns

void

The declared return value.

void oa::CbProgressBar::onTrainEnd( oa::ItTraining & inIter )
No public source comment is attached to this declaration.

Parameters

inIter
oa::ItTraining &

Returns

void

The declared return value.

void oa::CbProgressBar::setShowEpochHeader( bool inShow )
Suppress the "epoch N/M" header line — used with oa::CbPhase, which prints phase-relative epoch headers instead.

Parameters

inShow
bool

Returns

void

The declared return value.