Skip to content

FeatureDataMismatchError

Bases: Exception

Raised when the columns of the table passed to the predict or fit method do not match with the specified features of the model.

Source code in src/safeds/exceptions/_ml.py
class FeatureDataMismatchError(Exception):
    """Raised when the columns of the table passed to the predict or fit method do not match with the specified features of the model."""

    def __init__(self) -> None:
        super().__init__(
            "The features in the given table do not match with the specified feature columns names of the model.",
        )