Skip to main content

helper

Helper functions concerning data.

Module

Functions

convert_epochs_to_steps

def convert_epochs_to_steps(    epochs: int, dataloader: 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.