Closed mpierrau closed 3 years ago
Hi @mpierrau, the test_clf_class
function in test_all_models.py shows an example on how to save and re-load ensmebles.
Feel free to tell me if you have any problem.
EDIT: Thanks for reporting, we will add more explanations in the documentation.
Hi @xuyxu!
Thank you for your prompt reply and thank you for the pointer. I managed to load a saved model using the io.load
module from torchensemble.utils
.
Since this is a highly utilized function, I think your documentation would benefit from including this.
Thanks for the help! :)
Sure, we will add this. Glad to hear that your problem solved.
Hi!
Thank you for a nice ensemble wrapper!
I can't seem to figure out how to load a saved model and there are no instructions in the docs on this process. I have tried to use
load_state_dict
with the loaded state dictionary, but I get a RuntimeError (missing keys). So performing:and then
gives the error
etc.
I have tried to load the dict to the individual base learners as well as loading
d['model']
, but without success.Hoping you can help!
Thank you!