Why save training means when standardizing features?
Standardization centers each training feature and rescales it by its standard deviation.
StandardScaler in practice
A height of 170 cm becomes one when the training mean is 160 and deviation ten. Recomputing the mean on today’s customers would move the same person.
中文
为什么按列标准化要保存训练均值?
标准化按训练列减均值、除以标准差,让不同单位的特征处在相近尺度。
StandardScaler 应用实例
身高 170 厘米,训练均值 160、标准差 10,得到 1。预测时若用当天客户重算均值,同一个人的坐标就变了。