baybe.utils.validation.validate_object_names

baybe.utils.validation.validate_object_names(objects: Iterable[Parameter | Target], /)[source]

Validate that the provided objects have unique names.

Parameters:

objects (Iterable[Parameter | Target]) – An iterable containing a combination of parameters and targets.

Raises:

ValueError – If two or more objects have the same name.

Return type:

None