【问题标题】:How to comput more than num_classes - 1 LDA directions in numpy?如何在 numpy 中计算超过 num_classes - 1 个 LDA 方向?
【发布时间】:2015-10-21 06:27:33
【问题描述】:

我一直在使用sklearn LDA 来计算 LDA 投影方向。但它只允许我计算最多 K-1 个,其中 K 是数据所属的类数。

如何计算 K 或更多方向?

非常感谢!

【问题讨论】:

    标签: python numpy machine-learning statistics scikit-learn


    【解决方案1】:

    你不能。

    类间散布矩阵的秩最多为n_classes - 1,因此最多有n_classes - 1方向使类间方差和类内方差的比值最大化。

    更多详情请见https://en.wikipedia.org/wiki/Linear_discriminant_analysis#Multiclass_LDA

    【讨论】:

      猜你喜欢
      • 2020-06-15
      • 2014-02-17
      • 1970-01-01
      • 2020-07-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-26
      相关资源
      最近更新 更多