deephyper.skopt.utils.check_list_types#
- deephyper.skopt.utils.check_list_types(x, types)[source]#
Check whether all elements of a list x are of the correct type(s) and raise a ValueError if they are not.
Note that types can be either a single object-type or a tuple of object-types.
Raises ValueError, If one or more element in the list x is not of the correct type(s).