【发布时间】:2014-12-29 03:06:27
【问题描述】:
我想使用 PCA、LDA 和 MDS 减少数据集的特征。 但我也想保留 95% 的方差。
我找不到在相应算法的公式中表示所需差异的方法。有一段似乎与 PCA 的 API (sklearn.decomposition.PCA) 相关 -
if n_components == ‘mle’, Minka’s MLE is used to guess the dimension if 0 < n_components < 1, select the number of components such that the amount of variance that needs to be explained is greater than the percentage specified by n_components
但是 n_components 怎么可能同时等于 'mle' 和分数呢?
设置 n_components='mle' 将特征从 40 减少到 39,这没有帮助。
【问题讨论】:
标签: python scikit-learn feature-selection