IndicoDataSolutions / Passage

A little library for text analysis with RNNs.
MIT License
530 stars 134 forks source link

Stroing trained model #4

Closed agogolev closed 9 years ago

agogolev commented 9 years ago

Hello,

What is the proper way to store and restore the trained model? I tried to pickle the model variable but stuck with following error:

*** PicklingError: Can't pickle <type 'function'>: attribute lookup __builtin__.function failed

I bet you don't retrain the whole network on each run. How do you store it?

Newmu commented 9 years ago

Yep, we have load and save interfaces.

Please see https://github.com/IndicoDataSolutions/Passage/issues/1 for previous comments.

agogolev commented 9 years ago

@Newmu

Thanks!