Mahout
  1. Mahout
  2. MAHOUT-721

Override org.apache.mahout.math.VectorWritable#toString()

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.6
    • Component/s: Math
    • Labels:
      None

      Description

      VectorWritable#toString method is currently default implementation.
      It should be implemented appropriately.

      For instance, after running RecommenderJob, I inspect the temporary files on HDFS.

      $ hadoop fs -libjars /path/to/mahout-core-0.5-job.jar -text temp/userVectors/part-r-00000

      But this command returns

      2       org.apache.mahout.math.VectorWritable@15f48262
      4       org.apache.mahout.math.VectorWritable@15f48262
      

      If the toString is not default implementation, we can see this result.

      2       {101:2.0,104:2.0,103:5.0,102:2.5}
      4       {101:5.0,106:4.0,104:4.5,103:3.0}
      
      1. VectorWritable.java.patch
        0.5 kB
        Daisuke Miyamoto
      2. Writable-toString.patch
        5 kB
        Daisuke Miyamoto

        Activity

          People

          • Assignee:
            Sean Owen
            Reporter:
            Daisuke Miyamoto
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development