The documented dream proposal key is rejected by the parser, so DREAM(KZS) (proposal = kalman) cannot be selected from a conf file

Abierto
#1,076 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
72/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python
Área
backend

Línea de trabajo

Start with the DREAM section in docs/algorithms.rst, the configuration parser's accepted keys, and DreamAlgorithm in pybnf/algorithms/samplers/dream.py. Read tests/test_dream_config_surface.py and tests/test_sampler_integration.py for the existing direct-config coverage, then trace how configuration values reach the proposal operators. Done means the documented conf-file behavior is implemented and covered by tests, or the docs explain how each variant is selected.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug documentation

docs/algorithms.rst (the DREAM section, around lines 487–527) documents a proposal key for dream, with values de, whitened and kalman. It describes DREAM(KZS) as job_type = dream, proposal = kalman and MT-P-DREAM as proposal = whitened, n_try = k. But proposal is not among the keys the conf parser accepts. A conf that sets it is refused:

Error: Parsing configuration key 'proposal' on line 8.
proposal is not a valid configuration key.

DreamAlgorithm reads config.config['proposal'] (pybnf/algorithms/samplers/dream.py:170). The tests reach the kalman and whitened operators only by setting the config dict directly (tests/test_dream_config_surface.py:132, tests/test_sampler_integration.py:198). So DREAM(KZS), a published variant the docs list, cannot be selected from a conf file at all. kalman_burnin_frac, which only matters for the kalman proposal, is a valid key.

whitened alone is reachable as job_type = p_dream.

Found while reviewing #1066. Reproduced on main at cbb8159c.

Reproduction
edition = 2
objective = gaussian, mean = 0 0, variance = 1 1
uniform_var = g1 -10 10
uniform_var = g2 -10 10
output_dir = out
job_type = dream
proposal = kalman
population_size = 4
max_iterations = 300
burn_in = 10
What should happen

Either:

  • add proposal to the parser's keys for dream, validating its value at load and refusing it on other job types, with a test that each documented value reaches the matching operator from a conf file; or
  • remove the proposal examples from the docs and say how each variant is selected.
Lenguaje dominante
Python
Estrellas
26
Forks
25
Merge medio
4 h 25 min
PR fusionados (30 d)
9

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de lanl/PyBNF

Todos los issues de lanl/PyBNF

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.