[
https://issues.apache.org/jira/browse/MAHOUT-1180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13650471#comment-13650471
]
Hudson commented on MAHOUT-1180:
--------------------------------
Integrated in Mahout-Quality #1983 (See
[https://builds.apache.org/job/Mahout-Quality/1983/])
Fixes MAHOUT-1180 (Revision 1478723)
Result = SUCCESS
dfilimon :
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1478723
Files :
*
/mahout/trunk/math/src/main/java/org/apache/mahout/math/random/Multinomial.java
*
/mahout/trunk/math/src/test/java/org/apache/mahout/math/random/MultinomialTest.java
> Multinomial<T> throws ConcurrentModificationException when iterating and
> setting probabilities
> ----------------------------------------------------------------------------------------------
>
> Key: MAHOUT-1180
> URL: https://issues.apache.org/jira/browse/MAHOUT-1180
> Project: Mahout
> Issue Type: Bug
> Affects Versions: 0.8
> Reporter: Dan Filimon
> Priority: Minor
> Fix For: 0.8
>
> Attachments: MAHOUT_1180.patch, MAHOUT_1180.patch
>
>
> Here's [1] an example of the problem (from BallKMeans, lines 225-232, [2]).
> When iterating through the elements in a Multinomial and updating the
> probabilities, sometimes newWeight becomes 0 (because of using
> CosineDistances).
> When setting a weight to 0 in Multinomial, the element is removed from the
> items hash map while using the hash map for iteration.
> This causes a ConcurrentModificationException.
> [1] https://gist.github.com/dfilimon/5270234
> [2]
> https://github.com/dfilimon/mahout/blob/skm/core/src/main/java/org/apache/mahout/clustering/streaming/cluster/BallKMeans.java#L225
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira