Skip to content

NotFittedError

Bases: SafeDsError, RuntimeError

Raised when an object (e.g. a transformer or model) is not fitted.

Source code in src/safeds/exceptions/__init__.py
class NotFittedError(SafeDsError, RuntimeError):
    """Raised when an object (e.g. a transformer or model) is not fitted."""

    def __init__(self, *, kind: str = "object") -> None:
        super().__init__(f"This {kind} has not been fitted yet.")