Impute
- class coba.environments.Impute
Impute missing values (nan) in Interaction contexts.
Constructors
- __init__(stat: Literal['mean', 'median', 'mode'] = 'mean', indicator: bool = True, using: int | None = None)
Impute missing data.
- Parameters:
stats – The statistic to use for imputation.
indicator – Indicates whether a binary feature should be added for missingness.
using – The number of interactions to use to calculate imputation statistics.
Methods
- filter(interactions: Iterable[Interaction]) Iterable[Interaction]
Apply filter to an Environment’s interactions.
Attributes
- params