golearn icon indicating copy to clipboard operation
golearn copied to clipboard

Best practice of storing your models

Open breskos opened this issue 8 years ago • 6 comments

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

breskos avatar Feb 22 '17 16:02 breskos

any update on this?

meirwah avatar Apr 06 '17 06:04 meirwah

Also for trees if possible

meirwah avatar Apr 06 '17 18:04 meirwah

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.

Sentimentron avatar Apr 07 '17 08:04 Sentimentron

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.

meirwah avatar Apr 07 '17 20:04 meirwah

Are you planning to persist it using GOB?

meirwah avatar Apr 07 '17 20:04 meirwah

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.

Sentimentron avatar Apr 09 '17 12:04 Sentimentron