gpt4 book ai didi

machine-learning - sklearn.preprocessing中standardscaler和Normalizer的区别

转载 作者:行者123 更新时间:2023-11-30 08:21:11 25 4
gpt4 key购买 nike

sklearn.preprocessing模块中的standardscaler和normalizer有什么区别?两者不都做同样的事情吗?即使用偏差删除均值和比例?

最佳答案

来自Normalizer文档:

Each sample (i.e. each row of the data matrix) with at least one non zero component is rescaled independently of other samples so that its norm (l1 or l2) equals one.

StandardScaler

Standardize features by removing the mean and scaling to unit variance

换句话说,Normalizer 按行操作,而 StandardScaler 按列操作。归一化器不会通过偏差去除均值和比例,而是将整行缩放到单位范数。

关于machine-learning - sklearn.preprocessing中standardscaler和Normalizer的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39120942/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com