Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-1238

VectorWritable's bug with VectorView of sparse vectors

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7, 0.8
    • Fix Version/s: 0.7, 0.8
    • Component/s: Math
    • Labels:

      Description

      VectorWritable raises an exception if it is used on a VectorView of a sparse vector. The reason is that the sparse vector writes only the non-zero elements, while VectorView's implementation of getNumNondefaultElements() returns the size of the entire data. Later when reading the vector, VectorWritable expects reading more items that was written.

        Attachments

        1. MAHOUT-1238.patch
          2 kB
          Maysam Yabandeh
        2. MAHOUT-1238.patch
          1 kB
          Maysam Yabandeh

          Activity

            People

            • Assignee:
              robinanil Robin Anil
              Reporter:
              maysamyabandeh Maysam Yabandeh
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: