ClipSoft#

class sdm.processing.numerical.ClipSoft(max_absolute_value: float)#

Bases: Processor

Soft-clip numerical values toward ±max_absolute_value.

Values pass through

\[\frac{x}{\sqrt{1 + (x / b)^{2}}}\]

which maps monotonically onto ±max_absolute_value (b) without a hard edge. NaN is preserved. ±Inf maps to ±max_absolute_value. Unlike ClipSigma, the bound is fixed rather than fitted from per-column statistics.

Parameters:

max_absolute_value (float) – Bound of the soft clip.

Capabilities#

Handled Semantic Types

numerical

Requires Fitting

❌