You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Daisuke Miyamoto (JIRA)" <ji...@apache.org> on 2011/06/04 10:30:47 UTC

[jira] [Commented] (MAHOUT-721) Override org.apache.mahout.math.VectorWritable#toString()

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

Daisuke Miyamoto commented on MAHOUT-721:
-----------------------------------------

Thanks. I think so.

> Override org.apache.mahout.math.VectorWritable#toString()
> ---------------------------------------------------------
>
>                 Key: MAHOUT-721
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-721
>             Project: Mahout
>          Issue Type: Improvement
>          Components: Math
>            Reporter: Daisuke Miyamoto
>            Assignee: Sean Owen
>             Fix For: 0.6
>
>         Attachments: VectorWritable.java.patch, Writable-toString.patch
>
>
> VectorWritable#toString method is currently default implementation.
> It should be implemented appropriately.
> For instance, after running RecommenderJob, I inspect the temporary files on HDFS.
> {code}$ hadoop fs -libjars /path/to/mahout-core-0.5-job.jar -text temp/userVectors/part-r-00000{code}
> But this command returns
> {code}
> 2       org.apache.mahout.math.VectorWritable@15f48262
> 4       org.apache.mahout.math.VectorWritable@15f48262
> {code}
> If the toString is not default implementation, we can see this result.
> {code}
> 2       {101:2.0,104:2.0,103:5.0,102:2.5}
> 4       {101:5.0,106:4.0,104:4.5,103:3.0}
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira