baybe.targets.transforms.bell_transform

baybe.targets.transforms.bell_transform(arr: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], lower: float, upper: float)[source]

Map values to the interval [0, 1] in a “Gaussian bell” fashion.

The shape of the function is “Gaussian bell curve”, specified through the boundary values of the sigma interval. Reaches the maximum value of 1 at the interval center.

Parameters:
Return type:

ndarray

Returns:

A new array containing the transformed values.