mahout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <>
Subject [jira] [Commented] (MAHOUT-1116) WeightedVectors do not implement equals()
Date Fri, 16 Nov 2012 11:22:12 GMT


Sean Owen commented on MAHOUT-1116:

Nothing breaks directly (except the tests), but this isn't conclusive. I looked at all usages
of this and its subclass Centroid in the code and none involve comparison or sorting. Within
Hadoop, a different interface determines comparability, so I rule that out too. I also think
it's good if anyone who wrote this can comment, but don't expect this hurts.
> WeightedVectors do not implement equals()
> -----------------------------------------
>                 Key: MAHOUT-1116
>                 URL:
>             Project: Mahout
>          Issue Type: Bug
>          Components: Math
>    Affects Versions: 1.0
>            Reporter: Dan Filimon
>            Priority: Minor
>              Labels: newbie
>         Attachments: MAHOUT-1116.patch, WeightedVector_MAHOUT_1116.patch, WeightedVector_MAHOUT_1116.patch
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> WeightedVectors [1] implement compareTo but not equals so in cases where just the weights
or the indices differ, despire compareTo returning 0, equals returns false.
> [1]

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:

View raw message