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

Last batch is not filled correctly in MultithreadedBatchItemSimilarities

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9
    • 0.10.0
    • None
    • None

    Description

      In MultithreadedBatchItemSimilarities method queueItemIDsInBatches handles last batch incorrectly. Last batch length is calculated incorrectly. As a result last batch is either truncated or too long with superfluous positions filled with item indexes from previous batch (or zeros if it is also the first batch as in attached test).

      Attached test fails for very short model (with only 4 items) with NoSuchItemException.

      Attached patch corrects this issue.

      Attachments

        Activity

          People

            ssc Sebastian Schelter
            jbojar Jarosław Bojar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: