Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not get PredLik.mat files in output dirs #35

Open
brainfo opened this issue May 31, 2020 · 1 comment
Open

do not get PredLik.mat files in output dirs #35

brainfo opened this issue May 31, 2020 · 1 comment

Comments

@brainfo
Copy link

brainfo commented May 31, 2020

When I'm trying to visualize the process, (trace the parameters during the process), I cannot find such files.
There are only K, elapsed_time, loss and n examples total info, and all .mat files are not readable.

@michaelchughes
Copy link
Contributor

To read the models in, you want the “ModelReader” utility functions here:
https://github.com/bnpy/bnpy/blob/master/bnpy/ioutil/ModelReader.py
You can look elsewhere in ioutil for other utilities for reading in the performance metrics produced during training. I'd like to standardize these even more, but sorry I'm quite short on time.

Basically, during training the model is saved to .mat files at various checkpoints.
In any case, should be able to use scipy.io.loadmat to read the .mat files. Has that broken in a recent version upgrade?

You can read them back into your python session by using:

hmodel = load_model_at_prefix(“path/to/results/“, prefix=‘Best’)

Hope that helps! I’ll try to post a working example soon, but may be a week or two

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants