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

VectorWritable's bug with VectorView of sparse vectors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7, 0.8
    • 0.7, 0.8
    • classic

    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

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

            Dates

              Created:
              Updated:
              Resolved: