neuralbench.callbacks.RecordingLevelEval

class neuralbench.callbacks.RecordingLevelEval[source][source]

Callback to evaluate average prediction over each recording (timeline).

on_test_batch_end(trainer: Trainer, pl_module: LightningModule, outputs, batch, batch_idx, dataloader_idx=0) None[source][source]

Called when the test batch ends.

on_test_epoch_end(trainer: Trainer, pl_module: LightningModule) None[source][source]

Called when the test epoch ends.

on_test_epoch_start(trainer: Trainer, pl_module: LightningModule) None[source][source]

Called when the test epoch begins.

setup(trainer: Trainer, pl_module: LightningModule, stage: str) None[source][source]

Called when fit, validate, test, predict, or tune begins.