charles-river-analytics / figaro

Figaro Programming Language and Core Libraries
Other
756 stars 153 forks source link

Serialization #213

Closed apfeffer closed 9 years ago

apfeffer commented 10 years ago

When learning a model, it's natural to want to save the model for later use and load it again. Serialization would work nicely for this. Unfortunately, using Scala pickling doesn't seem to work currently. It would be good to look into this and see if we can make serialization work for Figaro models.

bruttenberg commented 10 years ago

The java serializable class is part of the scala language. Can't we just use that?

Sent from my Verizon Wireless 4G LTE smartphone

-------- Original message -------- From: apfeffer Date:06/13/2014 5:43 PM (GMT-05:00) To: p2t2/figaro Subject: [figaro] Serialization (#213)

When learning a model, it's natural to want to save the model for later use and load it again. Serialization would work nicely for this. Unfortunately, using Scala pickling doesn't seem to work currently. It would be good to look into this and see if we can make serialization work for Figaro models.

Reply to this email directly or view it on GitHubhttps://github.com/p2t2/figaro/issues/213.

apfeffer commented 10 years ago

Figaro elements don't serialize with Java serialization. I also tried Scala pickling, which is better than Java serialization, but it still doesn't work.

Avi

On Jun 14, 2014, at 9:26 AM, "bruttenberg" notifications@github.com<mailto:notifications@github.com> wrote:

The java serializable class is part of the scala language. Can't we just use that?

Sent from my Verizon Wireless 4G LTE smartphone

-------- Original message -------- From: apfeffer Date:06/13/2014 5:43 PM (GMT-05:00) To: p2t2/figaro Subject: [figaro] Serialization (#213)

When learning a model, it's natural to want to save the model for later use and load it again. Serialization would work nicely for this. Unfortunately, using Scala pickling doesn't seem to work currently. It would be good to look into this and see if we can make serialization work for Figaro models.

Reply to this email directly or view it on GitHubhttps://github.com/p2t2/figaro/issues/213.

Reply to this email directly or view it on GitHubhttps://github.com/p2t2/figaro/issues/213#issuecomment-46087910.