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

Jeff Eastman commented on MAHOUT-337:
-------------------------------------

I'd suggest making Vector implement Printable and deprecating 
Vector.asFormatString() and its current (Json) implementation. The 
Printable.asJsonString() provides the Json textual encoding which is complete 
and which can be used for stateful vector I/O from a more human-readable 
asFormatString(bindings) encoding which only needs to include the element 
values. 


> Don't serialize cached length squared in JSON vector representation
> -------------------------------------------------------------------
>
>                 Key: MAHOUT-337
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-337
>             Project: Mahout
>          Issue Type: Bug
>          Components: Math
>    Affects Versions: 0.3
>            Reporter: Sean Owen
>            Assignee: Sean Owen
>            Priority: Minor
>             Fix For: 0.4
>
>
> The cached length-squared field in vectors should be marked transient so that 
> it is not part of the JSON serialized state. 

-- 
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