_has_nested_classes#
- skactiveml.utils._has_nested_classes(classes)[source]#
Check whether classes contains one vocabulary per target label.
- Parameters:
- classesobject
Candidate class specification. Single-output class specifications are expected to be one-dimensional iterables of scalar labels. Nested specifications are expected to contain one iterable per target label.
- Returns:
- has_nested_classesbool
True if classes has a nested structure and False otherwise.
- Raises:
- TypeError
If classes or one of its nested class vocabularies is a one-shot iterator.
- ValueError
If classes is an empty iterable.