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

MCMCOutput objects appear large when printed #3

Open
davidnabergoj opened this issue Nov 7, 2024 · 0 comments
Open

MCMCOutput objects appear large when printed #3

davidnabergoj opened this issue Nov 7, 2024 · 0 comments

Comments

@davidnabergoj
Copy link
Owner

Printing an MCMCOutput object in the console or a Jupyter notebook results in a large output for long chains.

Minimal reproducible example:

from nfmc import sample
import torch

output = sample(
    target=lambda x: torch.sum(x ** 2, dim=1),
    event_shape=(10,),
    strategy='mh',
    n_iterations=1000, 
    n_chains=100
)
print(output)

Proposed change: do not print the samples.

@davidnabergoj davidnabergoj changed the title MCMCOutput objects are very large MCMCOutput objects appear large when printed Nov 7, 2024
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

1 participant