【发布时间】:2019-12-12 11:15:42
【问题描述】:
我正在尝试标准化一些数据以便能够将 PCA 应用于它。我正在使用 sklearn.preprocessing.StandardScaler。我很难理解在参数with_mean 和with_std (documentation) 中使用True 或False 之间的区别。
谁能给出更详细的解释?
【问题讨论】:
-
如果您将
with_mean/with_std设置为False,这意味着它将使用0/1作为均值/标准差,而不是首先在数据上测量这些值。如果两者都设置为False,则使用standard normal distribution。
标签: python scikit-learn pca decomposition