ibah / seer-nest

Nest full of little prophets about to hatch.
https://doing-nothing.slack.com
0 stars 0 forks source link

how to save experiment objects on HDD? #3

Open ibah opened 5 years ago

ibah commented 5 years ago

Catalog has a dictionary (catalog: models, predictions, evaluations, ...) of dictionaries (each containing trained models, or predictions, or evaluations). How to save these to HDD? There can be a folder for every sub-dictionary (e.g. library/predictions) but then we should determine:

Also we should pick some very simple version to start with something :)

dryguz commented 5 years ago

I would suggest to simply pickle objects we need to files. https://www.thoughtco.com/using-pickle-to-save-objects-2813661

Structure of folders... that would be easier to figure out when we will have class hierarchy and scope of functionality (does module will heavily transform data or will just consume data prepared outside of module), we need assume how we want this module to be used.

ibah commented 5 years ago

Yes, pickle can be our default solution. It is flexible enough to handle all our needs. We can even pickle multiple objects into one file to avoid having too large number of files. I put some other options in a document on Persistence that I am about to share. To summarize the options: