Expand description
Feature scaling — z-score standardization of a row-major feature matrix.
Reuses statistics::descriptive for the column mean / std-dev.
Structs§
- Standard
Scaler - Standardizes each column to zero mean / unit variance.
fitlearns the column means and std-devs;transformapplies(x − μ)/σ. A zero-variance column is left centered (σ treated as 1) rather than producing NaNs.