optimization.scaling.linear
Linear Scaler Module
This module contains the LinearScaler class, which is a scaler that performs a linear transformation on the value.
Kramer Harrison, 2025
Classes
|
Represents a scaler that performs a linear transformation on the value. |
- class LinearScaler(factor=1.0, offset=0.0)[source]
Represents a scaler that performs a linear transformation on the value.
- inverse_scale(scaled_value)[source]
Inverse scale the value using a linear transformation.
- Parameters:
scaled_value – The scaled value to inverse scale
- property monotonic: bool
Returns True if the scaler is monotonic increasing, False otherwise.
- scale(value)[source]
Scale the value using a linear transformation.
- Parameters:
value – The value to scale
- transform_bounds(min_val, max_val)
Transforms the bounds according to the scaler’s behavior.