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

オープン
#1,043 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
25
フォーク
25
平均マージ
4時間 5分
マージ済み PR(30日)
10

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

lanl/PyBNF のほかの issue

lanl/PyBNF の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。