【问题标题】:How many columns can Spark's PCA implementation handle?Spark 的 PCA 实现可以处理多少列?
【发布时间】:2018-06-02 03:47:06
【问题描述】:

例如,我可以计算 1,000,000 列的主成分吗?

【问题讨论】:

    标签: apache-spark apache-spark-mllib


    【解决方案1】:

    最大列数为 65,535。

    此限制在我们看到此评论的 RowMatrix 中强制执行:

    This cannot be computed on matrices with more than 65535 columns
    

    https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala#L380

    【讨论】:

      猜你喜欢
      • 2015-03-21
      • 2014-11-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多