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

BUG: new progressar adds empty spaces when progressbar=False #7264

Closed
velochy opened this issue Apr 17, 2024 · 2 comments · Fixed by #7273 or #7290
Closed

BUG: new progressar adds empty spaces when progressbar=False #7264

velochy opened this issue Apr 17, 2024 · 2 comments · Fixed by #7273 or #7290
Labels

Comments

@velochy
Copy link
Contributor

velochy commented Apr 17, 2024

Describe the issue:

As I need to sample the posterior on a very large sample of 1M rows, I have batched the operation and run it in groups of 10k
To monitor the progress, I put a tqdm progress bar on the bach loop.

This used to behave as expected, but since 5.13.1 this produces the following:
image

Reproduceable code example:

import pymc as pm

# Define and sample any model you like into idata

from tqdm import tqdm
with model:   
    for i in tqdm(list(range(10))):
        pm.sample_posterior_predictive(
                    idata,
                    progressbar=False,
                )

Error message:

No response

PyMC version information:

5.13.1

Context for the issue:

No response

@velochy velochy added the bug label Apr 17, 2024
@ricardoV94
Copy link
Member

I think @tomicapretto also noticed that. And he mentioned (?) it's an open issue in the progressbar library

May need an if/else statement somewhere.

@ricardoV94 ricardoV94 changed the title BUG: model.sample_posterior_predictive not playing nice with tqdm BUG: new progressar adds empty spaces when progressbar=False Apr 22, 2024
@ricardoV94
Copy link
Member

@tomicapretto reports this is not yet fixed

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