RobustScale#

class sdm.processing.numerical.RobustScale(*, quantile_range: tuple[float, float] = (25.0, 75.0))#

Bases: Processor, InvertibleMixin

Center and scale each feature column with median and quantile range.

Columns whose lower and upper quantile coincide use a unit scale to keep the transform finite and invertible. NaN and infinite values are ignored when fitting statistics and preserved during the transform.

Parameters:

quantile_range (tuple[float, float]) – Percentile pair (low, high) in [0, 100] used as the scale.

Capabilities#

Handled Semantic Types

numerical

Requires Fitting

✅