Sparsify
- class coba.environments.Sparsify
Ensure that features are sparse.
Constructors
- __init__(context: bool = True, action: bool = False)
Instantiate a Sparsify filter.
- Parameters:
context – If True then contexts should be made sparse otherwise leave them alone.
action – If True then actions should be made sparse otherwise leave them alone.
Methods
- filter(interactions: Iterable[Interaction]) Iterable[Interaction]
Apply filter to an Environment’s interactions.
Attributes
- params