Modelkit.Robust_scalerMedian centering and percentile-range scaling.
Quantiles use linear interpolation over sorted training values. A zero percentile range is replaced by one. Centering and scaling can be disabled independently; input values and quantile bounds must be finite, and sample weights are rejected.
include TRANSFORMER
with type t := t
and type params := params
and type target = unit
and type fitted := fitted
and type rng = Rng.ttype rng = Rng.tval fit :
t ->
?sample_weight:Sample_weight.t ->
rng:rng ->
feature_schema:Feature_schema.t ->
x:Matrix.t ->
y:target option ->
unit ->
(fitted, Error.t) resultval input_schema : fitted -> Feature_schema.tval output_schema : fitted -> Feature_schema.t