How can I save and reload trained autoencoders?
Show older comments
I am trying to save a trained autoencoder so I can reload it at a another point in time and run it. When I try: save autoenc; It saves to a .mat file. When I try: load autoenc; It comes in as a mat object, not an autoencoder. What is the proper way to do this?
Answers (1)
Corey Silva
on 24 Oct 2017
I'm having trouble reproducing what you described. If I do the following, I see the autoencoder loaded just fine.
>> X = abalone_dataset;
>> autoenc = trainAutoencoder(X);
>> save autoenc
>> clear all
>> load autoenc
It's possible you're not using the load/save functions correctly in this context. It might be worth taking a look at the following pages: https://www.mathworks.com/help/matlab/ref/save.html https://www.mathworks.com/help/matlab/ref/load.html
1 Comment
Paul Poloniewicz
on 24 Oct 2017
Categories
Find more on Pattern Recognition in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!