You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/02/20 22:02:12 UTC

[jira] [Commented] (MAHOUT-1642) Iterator class within SimilarItems class always misses the first element

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

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

GitHub user OlegZotov opened a pull request:

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

    MAHOUT-1642 fix missing first element in SimilarItemsIterator

    

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

    $ git pull https://github.com/OlegZotov/mahout master

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

    https://github.com/apache/mahout/pull/77.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 #77
    
----
commit 0b206a3bd0756667a8b77d52d39fb3cefd8c596b
Author: Oleg Zotov <o....@simcase.ru>
Date:   2015-02-20T20:11:23Z

    MAHOUT-1642 fix missing first element in SimilarItemsIterator

----


> 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
>
> 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)