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

look into mid-fit reporting of metrics #212

Open
arik-shurygin opened this issue Aug 2, 2024 · 2 comments
Open

look into mid-fit reporting of metrics #212

arik-shurygin opened this issue Aug 2, 2024 · 2 comments
Labels
experiment some sort of experiment to better understand a part of the model

Comments

@arik-shurygin
Copy link
Collaborator

Often an MCMC fit stalled on one chain, or starts to diverge only on, it would be helpful to figure out a way we can report some posteriors from the chains as they come in, rather than all at once at the end.

Look into a way to flush MCMC output after every sample, also analyze the performance impacts of doing something like this (try to keep it light weight no more than 5% increase to runtime)

@SamuelBrand1 maybe you are aware of something like this in other frameworks? Is this common to do?

@SamuelBrand1
Copy link
Contributor

Hey @arik-shurygin .

Yes this is common, e.g. in Turing.jl they have a callback module that outputs to to tensorboard https://turinglang.org/TuringCallbacks.jl/stable/

@arik-shurygin
Copy link
Collaborator Author

not sure if this kills this issue but I found this:

https://forum.pyro.ai/t/is-callback-supported-for-numpyro-nuts-sampler/6308

we currently don't run such low-level commands as he suggests as a workaround in our fitting script.
@kokbent how high priority is this functionality. Would it be worth redesigning our .infer() method to do this?

I have not dug in particularly deep to the implementation details and dont know how much of a headache it will be.

@arik-shurygin arik-shurygin added the experiment some sort of experiment to better understand a part of the model label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experiment some sort of experiment to better understand a part of the model
Projects
None yet
Development

No branches or pull requests

2 participants