Skip to main content

helper

Helper functions concerning data.

Module

Functions

def convert_epochs_to_steps(    epochs: int, dataloader: bitfount.data.dataloaders._BitfountDataLoader,)> int:

Converts number of epochs into number of steps.

Each step represents a minibatch. Ensure provided dataloader supports batching.

Arguments

  • epochs: An integer denoting the epoch number.
  • dataloader: An instance of a Bitfount DataLoader.

Returns An integer indicating the step number.