skactiveml.utils.check_missing_label#

skactiveml.utils.check_missing_label(missing_label, target_type=None, name=None)[source]#

Check whether a missing label is compatible to a given target type.

Parameters
missing_labelnumber or str or None or np.nan

Value to represent a missing label.

target_typetype or tuple, default=None

Acceptable data types for the parameter missing_label if it is not set to None.

namestr, default=None

The name of the variable to which missing_label is not compatible. The name will be printed in error messages if it is not None.