-
Notifications
You must be signed in to change notification settings - Fork 42
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
In sample progress=true prints more than a progress-bar #364
Comments
This is possible using the To do it propertly, one should just implement a AdvancedHMC.jl/src/abstractmcmc.jl Lines 175 to 194 in 37f0995
AdvancedHMC.jl/src/abstractmcmc.jl Line 203 in 37f0995
which only shows the progressbar without all the extra information. Buuut because in the AbstractMCMC-interface impl we only use the AdvancedHMC.jl/src/abstractmcmc.jl Lines 82 to 85 in 37f0995
we can just provide a In short, try the following: # HACK: a callback that does nothing to avoid hitting `HMCProgressCallback`
callback(rng, model, sampler, transition, state, i) = nothing
samples = AbstractMCMC.sample(
model,
sampler,
n_adapts + n_samples;
nadapts = n_adapts,
initial_params = initial_θ,
callback=callback,
progress=true, # will use default progress meter i `AbstractMCMC`
) |
Thanks for this package. I tried the example in the README with
progress=true
(on Julia 1.10 and AdvancedHMC v0.6.1):This has a progress-bar, and in the addition the following information is printed:
Is this a feature, and is there anyway to only print the progressbar?
The text was updated successfully, but these errors were encountered: