Skip to main content

Module scaling

Module scaling 

Source
Expand description

Feature scaling — z-score standardization of a row-major feature matrix. Reuses statistics::descriptive for the column mean / std-dev.

Structs§

StandardScaler
Standardizes each column to zero mean / unit variance. fit learns the column means and std-devs; transform applies (x − μ)/σ. A zero-variance column is left centered (σ treated as 1) rather than producing NaNs.