convert.py silences petab 0.10's whole parameter-scale warning, including its note that converted parameter-scale priors change the MAP estimate

Abierto
#1,043 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
backend

Línea de trabajo

Start with _HANDLED_PETAB1TO2_WARNINGS in pybnf/petab/convert.py and the conversion behavior described in ADR-0073. Compare the posterior PyBNF imports for a converted parameter-scale prior with the v1 problem's posterior, then document the result in ADR-0073. Use that result to decide whether to adopt PEtab 0.10's reparametrize option or silence only the warning's first sentence.

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

Descripción

question

_HANDLED_PETAB1TO2_WARNINGS in pybnf/petab/convert.py:113 silences the warning that starts "Parameter scales are not supported in PEtab v2.".

In petab 0.10.0 (petab/v2/petab1to2.py, around lines 724-751) that warning goes on to say three things:

  • log-scaled parameters are estimated on linear scale;
  • parameter-scale priors were converted to priors of the unscaled parameters, which "changes the maximum a posteriori estimate";
  • reparametrize='priors' or 'all' estimates them on log scale.

PyBNF's conversion (ADR-0073) re-injects the v1 parameter scale and rewrites each declared prior from its v1 row (#893), so the MAP may well be unchanged for PyBNF users. That should be checked rather than assumed.

To do:

  • Confirm with a converted parameter-scale prior that the posterior PyBNF imports matches the v1 problem's.
  • Say so in ADR-0073.
  • Decide whether to use petab 0.10's new reparametrize option, or to silence only the first sentence.

Found in independent review of #1017.

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.