A sampler run that wall_time_fit stops after it has draws reports "Fitting complete" but writes no final credible intervals, histograms or diagnostics
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 58/100
Hướng nghiên cứu
Start with tests/test_sampler_load_refusals_review4.py, especially test_a_budget_stopped_run_with_draws_writes_its_final_posterior_output, and trace how sampler shutdown writes posterior summaries after a wall_time_fit stop. Compare that path with the max_iterations completion path and check the AM continuation outputs mentioned in the test notes. Done when the test passes without xfail and budget stopped runs with draws write the expected final outputs.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
A sampler run that wall_time_fit stops after it has recorded draws exits 0 with "Fitting complete" and a non-empty samples.txt. But it writes none of the final posterior output that a run reaching max_iterations writes: no credible68.0_final.txt or credible95.0_final.txt, no *_final histograms, and no diagnostics.txt. A user who reads the latest credible intervals gets the last periodic file, written at an earlier iteration than the run's last draw. ADR-0093 says a budgeted run is a finished run whose search was cut short, and writes exactly what a converged one writes. Here it doesn't.
Found while reviewing #1066. Reproduced on main at cbb8159c.
Reproduction
Analytic target, so no model or simulator is involved:
edition = 2
objective = gaussian, mean = 0 0, variance = 1 1
uniform_var = g1 -10 10
uniform_var = g2 -10 10
random_seed = 1
verbosity = 1
output_dir = out
job_type = dream
population_size = 4
max_iterations = 100000000
burn_in = 10
sample_every = 1
wall_time_fit = 40
pybnf -c x.conf -o:
- It prints "Wall-time budget reached: stopped after 0:00:40 ... 1083 completed simulation(s)", then "Fitting complete", and exits 0.
samples.txtholds 1262 draws.Results/hascredible68.0_{100,200,300}.txtandcredible95.0_{100,200,300}.txt, andHistograms/hasg1_{100,200,300}.txt. There is no*_finalfile and nodiagnostics.txt.
The same conf with max_iterations = 300 and no wall_time_fit writes credible68.0_final.txt, credible95.0_final.txt, Histograms/g1_final.txt, g2_final.txt and diagnostics.txt.
The review's test covers mh, pt, dream and am. It is a strict xfail in tests/test_sampler_load_refusals_review4.py: test_a_budget_stopped_run_with_draws_writes_its_final_posterior_output. The test's notes say am also writes no combined_params.txt and nothing to adaptive_files/ for a later continue_run.
What should happen
A sampler run stopped early with draws in hand should write the same final outputs as one that reaches max_iterations, from the draws it has. Otherwise it should end with an error that says the posterior summary was not written. Remove the xfail with the fix.
The same end state follows a min_objective stop (#1072). A run stopped before its first draw is already an error since #921.
- Ngôn ngữ chính
- Python
- Star
- 26
- Fork
- 25
- Merge trung bình
- 4 giờ 25 phút
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của lanl/PyBNF
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
min_objective stops a sampler run early and reports "Fitting complete": samplers should refuse itĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
bug minor
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 92/100
-
bug minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Issue tương tự
-
docs(contributing): the two things that silently block a PRCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởavailable documentation good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 95/100
Nixitov/Riptide-Native#944 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
JTHCode/secretguard#24 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: middleware documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainer thường phản hồi trong vòng 1 ngày