You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mahout.apache.org by "Shashanka Balakuntala Srinivasa (Jira)" <ji...@apache.org> on 2024/04/22 04:26:00 UTC
[jira] [Commented] (MAHOUT-1882) SequentialAccessSparseVector inerateNonZeros is incorrect.
[ https://issues.apache.org/jira/browse/MAHOUT-1882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17839471#comment-17839471 ]
Shashanka Balakuntala Srinivasa commented on MAHOUT-1882:
---------------------------------------------------------
The PR which is fixing this: [Mahout 1913 by andrewmusselman · Pull Request #290 · apache/mahout (github.com)|https://github.com/apache/mahout/pull/290] has been closed. Do we have to back/front port it to specific branch? [~rawkintrevo] can we mark this as closed?
> SequentialAccessSparseVector inerateNonZeros is incorrect.
> ----------------------------------------------------------
>
> Key: MAHOUT-1882
> URL: https://issues.apache.org/jira/browse/MAHOUT-1882
> Project: Mahout
> Issue Type: Bug
> Components: classic
> Affects Versions: 0.12.2
> Reporter: Andrew Palumbo
> Assignee: Shashanka Balakuntala Srinivasa
> Priority: Critical
> Fix For: classic-15.0
>
>
> In {{SequentialAccessSparseVector}} a bug is noted. When Cuonting Non-Zero elements {{NonDefaultIterator}} can, under certain circumstances give an incorrect iterator of size different from the actual non-zeroCounts.
> {code}
> @Override
> public Iterator<Element> iterateNonZero() {
> // TODO: this is a bug, since nonDefaultIterator doesn't hold to non-zero contract.
> return new NonDefaultIterator();
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)