Skip to content

ImputerStrategy

Bases: ABC

The abstract base class of the different imputation strategies supported by the Imputer.

This class is only needed for type annotations. Use the subclasses nested inside Imputer.Strategy instead.

Source code in src/safeds/data/tabular/typing/_imputer_strategy.py
class ImputerStrategy(ABC):
    """
    The abstract base class of the different imputation strategies supported by the `Imputer`.

    This class is only needed for type annotations. Use the subclasses nested inside `Imputer.Strategy` instead.
    """

    @abstractmethod
    def _augment_imputer(self, imputer: sk_SimpleImputer) -> None:
        """
        Set the imputer strategy of the given imputer.

        Parameters
        ----------
        imputer: SimpleImputer
            The imputer to augment.
        """