Skip to content

DatasetMissesFeaturesError

Bases: ValueError

Raised when a dataset misses feature columns.

Parameters:

Name Type Description Default
missing_feature_names list[str]

The names of the missing feature columns.

required
Source code in src/safeds/exceptions/_ml.py
class DatasetMissesFeaturesError(ValueError):
    """
    Raised when a dataset misses feature columns.

    Parameters
    ----------
    missing_feature_names:
        The names of the missing feature columns.
    """

    def __init__(self, missing_feature_names: list[str]):
        super().__init__(f"Dataset misses the feature columns '{missing_feature_names}'.")