cursus.processing.numerical.minmax_scaling_processor¶
MinMax Scaling Processor for Numerical Features
This module provides atomic min-max scaling with learned parameters. Extracted from TSA preprocessing scaling logic.
- class MinMaxScalingProcessor(feature_range=(0, 1), learned_params=None, columns=None, clip_values=True)[source]¶
Bases:
ProcessorMin-max scaling with learned parameters.
Extracted from TSA preprocessing: - seq_num_mtx[:, :-2] = seq_num_mtx[:, :-2] * np.array(seq_num_scale_) + np.array(seq_num_min_)
- Parameters:
- fit(data)[source]¶
Learn scaling parameters from data.
If params were pre-supplied at construction (
learned_params), fit is intentionally a no-op that REUSES them (load-a-prior-fit pattern) — it logs that it is skipping recomputation so the no-op is not mistaken for a silent failure. Passlearned_params=Noneto force learning from data.