googleinterns / amaranth

Apache License 2.0
2 stars 0 forks source link

Save model after training #12

Closed tommylau-exe closed 4 years ago

tommylau-exe commented 4 years ago

Currently a trained model exists only in the memory of the application. This means that once the application stops, the model is lost. If we want the model to be distributed or trained more later, there should be functionality to save it to disk.

tommylau-exe commented 4 years ago

Just encountered a problem while working on #10. Not sure how to encode strings into a format the model will accept after it has been saved and reloaded in a different environment. May have to find some way to serialize this as well, through the model or otherwise.