toModel method

ScalerModel toModel()

Converts the scaler to a serializable model object.

Implementation

ScalerModel toModel() {
  _checkFitted();

  return ScalerModel(
    type: 'minmax',
    min: min,
    max: max,
    featureMin: _featureMin,
    featureMax: _featureMax,
  );
}