[ https://issues.apache.org/jira/browse/MAHOUT-959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13193449#comment-13193449 ]
Sean Owen commented on MAHOUT-959: ---------------------------------- No, this is wrong. The vectors are most certainly read back as they are written. That is why there is a flag written into the 'header'. This is *not* the same as laxPrecision. The issue is this: when serializing / writing a vector, which in memory always uses a double, how do you specify that it should be written as floats? that is the one and only purpose of laxPrecision in VectorWritable. It has no role in reading a vector. When reading a vector, the serialized form says whether the data is 'lax' or not. > VectorWritable does not preserve the laxPrecision flag > ------------------------------------------------------ > > Key: MAHOUT-959 > URL: https://issues.apache.org/jira/browse/MAHOUT-959 > Project: Mahout > Issue Type: Bug > Components: Math > Affects Versions: 0.6 > Reporter: Rares Vernica > Assignee: Sean Owen > Attachments: MAHOUT-959.patch, VerctorWritable-laxPrecicison.patch > > > When reading a vector, VectorWritable uses the laxPrecision flag to read with > the right precision, but it does not preserve the flag in case the vector is > written back. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira