A sampler run that wall_time_fit stops after it has draws reports "Fitting complete" but writes no final credible intervals, histograms or diagnostics
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 58/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 26
- Forks
- 25
- Merge medio
- 4 h 25 min
- PR fusionados (30 d)
- 9
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de lanl/PyBNF
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
min_objective stops a sampler run early and reports "Fitting complete": samplers should refuse itAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
-
bug minor
Dificultad 1/5 1-3 horas Aptitud para principiantes 92/100
-
bug minor
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Todos los issues de lanl/PyBNF
Issues similares
-
docs(contributing): the two things that silently block a PRPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoavailable documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 95/100
Nixitov/Riptide-Native#944 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
JTHCode/secretguard#24 ·
Los mantenedores suelen responder en 1 día
-
area: middleware documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
omarelshamy25x/shamy-hijri#63 ·
Los mantenedores suelen responder en 1 día