package modelkit
Module Modelkit.Min_max_scaler
Per-feature affine scaling into a configured finite range.
Fitting learns finite minima, maxima, scales, and offsets. Constant features use a unit denominator and therefore map to the range's lower bound. When clip is true, values transformed outside the training range are clipped to the configured bounds. 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.t
type 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