You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Jarosław Bojar (JIRA)" <ji...@apache.org> on 2014/05/24 01:48:03 UTC
[jira] [Created] (MAHOUT-1560) Last batch is not filled correctly
in MultithreadedBatchItemSimilarities
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)