GSON not a good fit for deserializing SGD models
------------------------------------------------

                 Key: MAHOUT-545
                 URL: https://issues.apache.org/jira/browse/MAHOUT-545
             Project: Mahout
          Issue Type: Bug
          Components: Classification
    Affects Versions: 0.4
            Reporter: Ted Dunning
             Fix For: 0.5


The problem is that GSON uses JavaCC which does LL(k) parsing.  The way that 
the JSON grammar is expressed causes stack recursion for each element of
a vector.

This is evil for parsing large models.

I will be changing ModelSerializer to fix this and will provide a reverse 
compatible mode for anybody who has been able to serialize/deserialize these 
models in the past.  My thought is to just make all the SGD models Writables.

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