[ https://issues.apache.org/jira/browse/SPARK-12684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15118311#comment-15118311 ]
holdenk commented on SPARK-12684: --------------------------------- [~chris.roberts] would the toString with maxLineWidth work for your use case? > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org