Jarosław Bojar created MAHOUT-1560:
--------------------------------------

             Summary: Last batch is not filled correctly in 
MultithreadedBatchItemSimilarities
                 Key: MAHOUT-1560
                 URL: https://issues.apache.org/jira/browse/MAHOUT-1560
             Project: Mahout
          Issue Type: Bug
          Components: Collaborative Filtering
    Affects Versions: 0.9
            Reporter: Jarosław Bojar
            Priority: Minor


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.

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

Attached patch corrects this issue.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to