Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-6693

add toString with max lines and width for matrix

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.0
    • 1.4.0
    • MLlib
    • None

    Description

      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 ... (100 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.

      Attachments

        Activity

          People

            yuhaoyan yuhao yang
            yuhaoyan yuhao yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified