Init

biapy.engine.prepare_optimizer(cfg, model_without_ddp, steps_per_epoch)[source]

Select the optimizer, loss and metrics for the given model.

Parameters:

cfg (YACS CN object) – Configuration.

biapy.engine.build_callbacks(cfg)[source]

Create training and validation generators.

Parameters:

cfg (YACS CN object) – Configuration.

Returns:

callbacks – All callbacks to be applied to a model.

Return type:

List of callbacks