baybe.objectives.validation.validate_target_names¶
- baybe.objectives.validation.validate_target_names(_, __, targets: Collection[Target])[source]¶
An attrs-compatible validator to assert unique target names.
- Raises:
ValueError – If the given collection contains targets with the same name.
- Return type: