HistoryCallback#

class pyqit.core.callbacks.HistoryCallback(history_obj)[source]#

Bases: BaseCallback

Copy each epoch’s metrics into a TrainingHistory.

Both loops install this, so history is filled by the same code path on either backend.

Parameters:

history_obj (TrainingHistory) – The object to append to. Supplied by the Trainer, which returns it from fit.

classmethod get_test_params()[source]#

List constructor kwargs used to parametrize this class in the test suite.

property history#

The TrainingHistory being filled.

on_epoch_end(state: LoopState) → None[source]#

Record this epoch’s metrics.

on_fit_end(state: LoopState) → None#

Called once, after the last epoch, including after an early stop.

on_fit_start(state: LoopState) → None#

Called once, after setup and before the first epoch.