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 | str | None | np.nan
Symbol to represent a missing label.
- target_typetype or tuple
Acceptable data types for the parameter ‘missing_label’.
- namestr
The name of the variable to which ‘missing_label’ is not compatible. The name will be printed in error messages.