Skip to content

Sequence

[source]

ProcessingSequence

paz.abstract.sequence.ProcessingSequence(processor, batch_size, data, as_list=False)

Sequence generator used for processing samples given in data.

Arguments

  • processor: Function, used for processing elements of data.
  • batch_size: Int.
  • data: List. Each element of the list is processed by processor.
  • as_list: Bool, if True inputs and labels are dispatched as lists. If false inputs and labels are dispatched as dictionaries.

[source]

GeneratingSequence

paz.abstract.sequence.GeneratingSequence(processor, batch_size, num_steps, as_list=False)

Sequence generator used for generating samples.

Arguments

  • processor: Function used for generating and processing samples.
  • batch_size: Int.
  • num_steps: Int. Number of steps for each epoch.
  • as_list: Bool, if True inputs and labels are dispatched as lists. If false inputs and labels are dispatched as dictionaries.