class_docstr: Epoch iterator used in the training phase of the model.
code: def _init_steps(
      self,
      train_generator,
      valid_generator,
      steps_per_epoch,
      validation_steps,
  ):
      self.steps_per_epoch = steps_per_epoch
      self.validation_steps = validation_steps
  
      if valid_generator is not None:
          if validation_steps is None:
              if hasattr(valid_generator, "__len__"):
                  self.validation_steps = len(valid_generator)
              elif steps_per_epoch is not None:
                  self.validation_steps = steps_per_epoch
      if steps_per_epoch is None and hasattr(
          train_generator, "__len__"
      ):
          self.steps_per_epoch = len(train_generator)
  
file_path: poutyne/poutyne/framework/iterators.py
imports: import itertools
  import timeit
label_desc: Use image node_id 2 for calling the EpochIterator obj's underlying member method code with example usage: obj._init_steps(train_generator, valid_generator, steps_per_epoch, validation_steps) without return types