check_equal_missing_label#
- skactiveml.utils.check_equal_missing_label(missing_label1, missing_label2)[source]#
Check whether two missing label values are equal to each other.
- Parameters:
- missing_label1number or str or None or np.nan
Value to represent a missing label.
- missing_label2number or str or None or np.nan
Other value to represent a missing label.
- Raises:
- TypeError
If the two values mark missing labels of different kinds, e.g. numeric np.nan and the string “nan”.
- ValueError
If the two missing labels are of one kind but are not equal.