golearn
golearn copied to clipboard
Best practice of storing your models
Hi! I've trained some models but I could not find a best practice for storing the models (neural, knn) that i have trained. Could you pls provide some best practices for that. Would be awesome. Best, Alex
any update on this?
Also for trees if possible
Embarassingly, saving models was something I never got around to, but it should be simple enough to add. Have at a look at https://docs.google.com/document/d/1jn7Gx_81hB14IVvrG7d3h4D6Emg7jzjx6npazfM9jjA/edit?usp=sharing to get an idea of what I plan to do about this, and let me know if that will meet your needs.
Yep seems good. I would also add an option to save to a []byte, so you can easily save this to a database instead of file.
Are you planning to persist it using GOB?
I think that it should generally use GOB, but sometimes when we wrap an external library (libsvm for example), we need the freedom to use another format in these cases.