optimization.scaling.log#

Log Scaler Module

This module contains the LogScaler class, which is a scaler that performs a logarithmic transformation on the value.

Kramer Harrison, 2025

Classes

LogScaler([base])

Represents a scaler that performs a logarithmic transformation on the value.

class LogScaler(base=2.718281828459045)[source]#

Represents a scaler that performs a logarithmic transformation on the value.

inverse_scale(scaled_value)[source]#

Inverse scale the value using a logarithmic 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 logarithmic transformation.

Parameters:

value – The value to scale

transform_bounds(min_val, max_val)#

Transforms the bounds according to the scaler’s behavior.