Riffle

class coba.environments.Riffle

Riffle shuffle interactions.

Constructors

__init__(spacing: int = 3, seed=1) None

Instantiate a Riffle filter.

Parameters:
  • spacing – The number of interactions from the beginning between each interaction shuffled in from the end.

  • seed – The seed used to determine the location of each ending interaction when placed within its beginning space.

Methods

filter(interactions: Iterable[Interaction]) Iterable[Interaction]

Apply filter to an Environment’s interactions.

Attributes

params