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

Open
#1,043 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
25
Forks
25
Avg merge
4h 5m
Merged PRs (30d)
10

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lanl/PyBNF

All issues in lanl/PyBNF

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.