Noise

class coba.environments.Noise

Add noise to values.

Constructors

__init__(context: Tuple[str, float, float] | Callable[[float, CobaRandom], float] | None = None, action: Tuple[str, float, float] | Callable[[float, CobaRandom], float] | None = None, reward: Tuple[str, float, float] | Callable[[float, CobaRandom], float] | None = None, seed: int = 1) None

Instantiate a Noise EnvironmentFilter.

Parameters:
  • context – A noise generator for context features.

  • action – A noise generator for action features.

  • reward – A noise generator for rewards.

  • seed – The seed initializing the random state of the noise generators.

Methods

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

Apply filter to an Environment’s interactions.

Attributes

params