PEtab import_job writes sampler confs that cannot record a draw: max_iterations = 100 with the default burn_in of 10000, and pt with no beta_range
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
Línea de trabajo
Lee pybnf/petab/import_.py cerca de _DEFAULT_SETTINGS y de los ajustes que se escriben cerca de la línea 2077. Reproduce el problema con el fixture proporcionado y comprueba cada configuración de sampler generada con check_fresh_run. Se considera terminado cuando las configuraciones de sampler incluyen una ventana de muestreo y la configuración pt incluye beta_range, con una prueba de regresión que cubra cada configuración de sampler que escribe el importador.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
pybnf.petab.import_.import_job writes the same run settings for every job type: population_size = 50, max_iterations = 100 and verbosity = 0 (_DEFAULT_SETTINGS, pybnf/petab/import_.py:219, written at :2077). For a sampler, burn_in is left at its default of 10000, so the generated sampler confs cannot record a draw:
- Since #1066, dream, p_dream, am, mh and pt are refused at start with "max_iterations (100) must be greater than burn_in (10000), otherwise no samples will be collected."
- Before #1066 they ran to an empty
samples.txtand reported "Fitting complete" (#921). - The pt conf also gets no
beta_range, so loading it warns that its replica exchanges will accomplish nothing. - hmc is accepted (it does not read
max_iterations).
Found while reviewing #1066. Reproduced on main at cbb8159c.
Reproduction
import os, re
from pathlib import Path
from pybnf.petab.import_ import import_job
from pybnf import parse, config, printing
out = import_job(Path('tests/petab_fixtures/fixedsigma_v2/problem.yaml'), Path('/tmp/imp'), job_type='all')
os.chdir(out)
for c in sorted(out.glob('imported_*.conf')):
try:
conf = config.Configuration(parse.ploop(c.read_text().splitlines(keepends=True)))
conf.check_fresh_run()
print(c.name, 'accepted')
except printing.PybnfError as e:
print(c.name, 'refused:', e.message.splitlines()[0])
imported_am.conf, imported_dream.conf, imported_mh.conf, imported_p_dream.conf and imported_pt.conf are refused; imported_hmc.conf is accepted. The same happens with job_type='dream' (or any one sampler) in place of 'all'.
What should happen
For a sampler job type, the importer should write a run that records draws:
- a
burn_inbelowmax_iterations, with amax_iterationslong enough to leave a sampling window; - for pt, a
beta_range.
A test should put every sampler conf the importer writes through check_fresh_run, as the reproduction does.
- 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
-
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
-
bug tech debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/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