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

pathfinder: save diagnostics when num_paths=1, save_single_paths=0 and arg diagnostics_file specified #1189

Closed
mitzimorris opened this issue Aug 24, 2023 · 0 comments · Fixed by #1190
Assignees
Labels

Comments

@mitzimorris
Copy link
Member

Summary:

Current logic for pathfinder config overlooks above edge case; if user specifies num_paths=1 and diagnostics_file="foo", diagnostics file foo.json is created but is empty.

Description:

Problem is here:

bool save_iterations
= get_arg_val<bool_argument>(*pathfinder_arg, "save_single_paths");

the pathfinder service only produces diagnostics if argument save_iterations is true. add logic to check for diagnostics_file arg.

Reproducible Steps:

./examples/eight_schools/eight_schools pathfinder num_paths=1 data file=examples/eight_schools/eight_schools.data.R output diagnostic_file=foo

Current Output:

diagnostics file foo.json exists but it empty.

Expected Output:

diagnostics file foo.json contains ELBO iterations.

Current Version:

v2.33.RC1

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

Successfully merging a pull request may close this issue.

1 participant