ClipSigma#

class sdm.processing.numerical.ClipSigma(*, threshold: float = 4.0)#

Bases: Processor

Two-stage z-score outlier clipping with soft logarithmic bounds.

The first pass masks values outside the initial z-score bounds, then the second pass refits bounds on the remaining values. The transform applies logarithmic soft clipping instead of hard truncation. NaN and infinite values are ignored when fitting statistics and preserved during the transform.

Parameters:

threshold (float) – Positive z-score multiplier setting how many standard deviations from the mean mark the soft clipping bounds.

Capabilities#

Handled Semantic Types

numerical

Requires Fitting

✅