[ 
https://issues.apache.org/jira/browse/MAHOUT-1642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14574335#comment-14574335
 ] 

ASF GitHub Bot commented on MAHOUT-1642:
----------------------------------------

GitHub user fape opened a pull request:

    https://github.com/apache/mahout/pull/134

    MAHOUT-1642 fix missing first element in SimilarItemsIterator

    based on OlegZotov's fix

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/fape/mahout 1642_similar_items_iterator

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/mahout/pull/134.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #134
    
----
commit 16ceace8f658183632861bfb28eb6d491e872897
Author: Farkas Peter <[email protected]>
Date:   2015-06-04T13:10:45Z

    MAHOUT-1642 fix missing first element in SimilarItemsIterator
    based on OlegZotov's fix

----


> Iterator class within SimilarItems class always misses the first element
> ------------------------------------------------------------------------
>
>                 Key: MAHOUT-1642
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-1642
>             Project: Mahout
>          Issue Type: Bug
>          Components: Collaborative Filtering
>            Reporter: Guohua Hao
>              Labels: legacy
>
> In the next() function of SimilarItemsIterator class within SimilarItems 
> class, variable 'index' is incremented before returning the actual element at 
> that position, therefore the first element when iterating will always be 
> missed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to