You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Chris Roberts (JIRA)" <ji...@apache.org> on 2016/01/07 02:05:39 UTC

[jira] [Updated] (SPARK-12684) Matrix.toString should take a format for how each cell should be printed

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

Chris Roberts updated SPARK-12684:
----------------------------------
    Description: Currently there is no way to control how long the printout of a cell value is in Matrix.toString.  In the case where I am printing the results of Statistics.corr(RDD[Vector]) I get a bunch of doubles with ~19 characters, when I only realistically have at most 5 significant digits.  I would love to be able to pass in a format to limit the printing out of extraneous digits.

> Matrix.toString should take a format for how each cell should be printed
> ------------------------------------------------------------------------
>
>                 Key: SPARK-12684
>                 URL: https://issues.apache.org/jira/browse/SPARK-12684
>             Project: Spark
>          Issue Type: Improvement
>          Components: MLlib
>            Reporter: Chris Roberts
>            Priority: Minor
>
> Currently there is no way to control how long the printout of a cell value is in Matrix.toString.  In the case where I am printing the results of Statistics.corr(RDD[Vector]) I get a bunch of doubles with ~19 characters, when I only realistically have at most 5 significant digits.  I would love to be able to pass in a format to limit the printing out of extraneous digits.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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