A .prop constraint at a time past the experiment's t_end is reported as satisfied and adds no penalty

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

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

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

Línea de trabajo

Start by tracing the interval search mentioned in the report and how qualitative constraints are evaluated for an experiment with t_end. Reproduce the late.prop case with t_end: 5 and t_end: 10; then find the relevant configuration-loading and scoring tests. Done means an unreachable constraint stops with an error naming the constraint time and t_end, rather than being counted as satisfied.

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

Descripción

bug silent-incorrectness

A constraint whose time lies beyond the simulated range is never evaluated, and PyBNF reports it as satisfied. The fit then optimizes as if the constraint were not there.

Reproduction, from a scratch copy of examples/tutorial/36_estimate_noise/ (decay.bngl, decay.exp), with job_type = check, which scores one parameter set:

edition = 2
model: decay.bngl
bngl_backend = bngsim
job_type = check
noise_model = normal, sigma = fix_at 1
experiment: timecourse, data: decay.exp
experiment: qual, data: late.prop, t_end: 5, n_steps: 50
uniform_var = k 0.05 3.0
output_dir = out

with late.prop holding the single line Obs_A > 1000 at time=8. The model's Obs_A at time 8 is about 1.8, so the constraint is false.

  • Without the qual experiment: Objective value is 288.77596758417525.
  • With it, t_end: 5: Objective value is 288.77596758417525, and Satisfied 1 out of 1 constraints.
  • With it, t_end: 10: Objective value is 1286.9444034221583, and Satisfied 0 out of 1 constraints.

So at t_end: 5 the constraint adds nothing and is counted as satisfied. The independent review of the #1030 fix found this. It traced it to the interval search, which finds no crossing in a simulation that ends before the constraint's time, and returns nothing.

A constraint that names a time the simulation never reaches cannot be checked. It should be refused when the configuration loads, naming the constraint, its time and the experiment's t_end. If a constraint's times depend on the fit, so that this can only be known while scoring, the evaluation should stop with that message rather than count the constraint as satisfied.

Lenguaje dominante
Python
Estrellas
25
Forks
25
Merge medio
4 h 5 min
PR fusionados (30 d)
10

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.