david-cortes / hpfrec

Python implementation of 'Scalable Recommendation with Hierarchical Poisson Factorization'.
http://hpfrec.readthedocs.io
BSD 2-Clause "Simplified" License
79 stars 19 forks source link

Recovering model from save_folder files #9

Closed ayunus22198 closed 3 years ago

ayunus22198 commented 3 years ago

Hey David,

Thank you for the code. We have a fairly large dataset, and I am interested in saving the recommender model to a file so I can avoid training over and over again (we don't want to call recommender.fit() repetitively). We put a google drive path to the save_folder field and are able to see the files. Is there a way we can recover the model using these files?

Screen Shot 2021-05-02 at 5 56 44 PM
david-cortes commented 3 years ago

No, there isn't, those are just text files with the fitted factors. If you need to serialize a model object you can use dill or similar.