baybe.utils.interval.convert_bounds

baybe.utils.interval.convert_bounds(bounds: None | tuple | Interval)[source]

Convert bounds given in another format to an interval.

Parameters:

bounds (Union[None, tuple, Interval]) – The bounds that should be transformed to an interval.

Return type:

Interval

Returns:

The interval.