Skip to content

FittingWithoutChoiceError

Bases: Exception

Raised when a model is fitted by exhaustive search without a choice object as a parameter.

Source code in src/safeds/exceptions/_ml.py
class FittingWithoutChoiceError(Exception):
    """Raised when a model is fitted by exhaustive search without a choice object as a parameter."""

    def __init__(self) -> None:
        super().__init__(
            "Error occurred while fitting: Trying to fit by exhaustive search without a Choice "
            "Parameter. Please use fit() instead.",
        )