[ 
https://issues.apache.org/jira/browse/MAHOUT-131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Grant Ingersoll updated MAHOUT-131:
-----------------------------------

    Attachment: MAHOUT-131.patch

Updated patch implements equals/hashcode for all the Vectors and puts in 
various tests related to these issues.  It should be the case now that 
Vector.equals() acts just like List.equals(), namely that two vectors 
containing the same elements are equivalent regardless of the implementation.

> Vector improvements
> -------------------
>
>                 Key: MAHOUT-131
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-131
>             Project: Mahout
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 0.2
>
>         Attachments: MAHOUT-131.patch, MAHOUT-131.patch
>
>
> Vector and it's implementations could use a few things:
> 1. DenseVector should implement equals and hashCode similar to SparseVector
> 2. The VectorView asFormatString() is not compatible with actually recreating 
> any type of vector.  
> 3. Add tests to VectorTest that assert that decodeFormat/asFormatString is 
> able to do a round trip.
> 4. Add static AbstractVector.equivalent(Vector, Vector) that takes in two 
> vectors and compares them for equality, regardless of their implementation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to