SupervisedSimulation
- class coba.environments.SupervisedSimulation
A contextual bandit environment created from supervised data.
Constructors
- __init__(source: Source[Iterable[Dense] | Iterable[Sparse] | Iterable[Tuple[Any, Any]]] = None, label_col: int | str = None, label_type: Literal['c', 'r', 'm'] = None, take: int = None) None
- __init__(X: Sequence[Any], Y: Sequence[Any], label_type: Literal['c', 'r', 'm']) None
Instantiate a SupervisedSimulation.
Methods
- read() Iterable[SimulatedInteraction]
A sequence of interactions.
- Remarks:
This function should always be “re-iterable”.
Attributes
- params