GitHub user hhbyyh opened a pull request:
https://github.com/apache/spark/pull/5344
[Spark-6693][MLlib]add to string with max lines and width for matrix
jira: https://issues.apache.org/jira/browse/SPARK-6693
It's kind of annoying when debugging and found you cannot print out the
matrix as you want.
original toString of Matrix only print like following,
0.17810102596909183 0.5616906241468385 ... (10 total)
0.9692861997823815 0.015558159784155756 ...
0.8513015122819192 0.031523763918528847 ...
0.5396875653953941 0.3267864552779176 ...
The def toString(maxLines : Int, maxWidth : Int) is useful when debuging,
logging and saving matrix to files.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/hhbyyh/spark addToString
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/5344.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #5344
----
commit 64a9e0ffdb1f563ec26326264936b5370a48883d
Author: Yuhao Yang <[email protected]>
Date: 2015-04-03T06:31:52Z
add specific to string to matrix
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]