baybe.transformations.basicΒΆ

Basic transformations.

Classes

AbsoluteTransformation

Return distance from zero: \(f(x) = \lvert x \rvert\).

AffineTransformation

Scale input values by a factor and add a constant shift.

BellTransformation

Map input values to a Gaussian bell-shaped score around a center point.

ClampingTransformation

Limit input values to a specified interval.

CustomTransformation

Apply a user-defined torch callable to the input tensor.

ExponentialTransformation

Apply the natural exponential function.

IdentityTransformation

Return input values unchanged: \(f(x) = x\).

LogarithmicTransformation

Take the natural logarithm of input values.

PowerTransformation

Raise input values to a specified exponent.

SigmoidTransformation

Map input values to a logistic S-shaped score.

TriangularTransformation

Map input values to a triangular score with a maximum of one at the peak.

TwoSidedAffineTransformation

Apply separate linear slopes on either side of a midpoint.