[ 
https://issues.apache.org/jira/browse/SPARK-21862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joseph K. Bradley reassigned SPARK-21862:
-----------------------------------------

    Assignee: Weichen Xu

> Add overflow check in PCA
> -------------------------
>
>                 Key: SPARK-21862
>                 URL: https://issues.apache.org/jira/browse/SPARK-21862
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML
>    Affects Versions: 2.2.0, 2.3.0
>            Reporter: Weichen Xu
>            Assignee: Weichen Xu
>            Priority: Minor
>
> We should add overflow check in PCA, otherwise it is possible to throw 
> `NegativeArraySizeException` when `k` and `numFeatures` are too large.
> The overflow checking formula is here:
> https://github.com/scalanlp/breeze/blob/master/math/src/main/scala/breeze/linalg/functions/svd.scala#L87



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to