Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

v2: Update parameter table validation for PEtab 2.0 erratum E1 (infinite bounds)

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
databases

調査の方向性

Start with petab/v2/core.py and petab/v2/lint.py, especially the parameter bound validators, Problem.get_priors, Problem.get_startpoint_distributions, and CheckPriorDistribution. Read the existing time bound validators and related tests first. Add coverage for allowed and rejected infinite bounds, MAP prior validation, start point sampling, and one-sided prior truncation; done means these cases behave as specified, with an informative error or fallback for unsampleable start points.

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

説明

PEtab 2.0.0 erratum E1 (PEtab-dev/PEtab#682, PEtab-dev/PEtab#684, errata page) made the following changes:

  • lowerBound may be -inf and upperBound may be inf. inf as a lower bound and -inf as an upper bound are invalid.
  • If priors are specified for any parameter, every estimated parameter with an infinite bound must have an explicit proper prior. The default uniform(lowerBound, upperBound) would be improper.

The current state of petab.v2:

  • Parameter.lb/ub are plain floats without a finiteness check (core.py#L1048-L1055). lb == ub == inf passes validation, because Parameter._validate only checks lb > ub (core.py#L1136). The existing _is_finite_or_neg_inf / _is_finite_or_pos_inf validators for time could be reused here.
  • There is no check that parameters with infinite bounds have an explicit prior when the problem has a MAP objective. Problem.get_priors creates Uniform(p.lb, p.ub) for parameters without a prior, which may be infinite (core.py#L2083).
  • Problem.get_startpoint_distributions creates the same default uniform distribution, also for maximum likelihood problems (core.py#L2101). Start points can't be sampled for parameters with infinite bounds and no prior. This should raise an informative error, or the caller should be able to provide a fallback distribution.

To do:

  • Restrict lb to finite or -inf and ub to finite or inf.
  • Add a validation task: if has_map_objective, every estimated parameter with an infinite bound needs an explicit priorDistribution. Whether the specified prior is proper, e.g. uniform with infinite priorParameters, is still open in the spec. This could be checked together with the existing TODO in CheckPriorDistribution (lint.py#L819).
  • Handle infinite bounds in start point sampling.
  • Test that prior truncation works with one-sided infinite bounds (e.g., log-normal with bounds 0/inf), i.e., that it is a no-op where the bounds match the prior's domain.
  • Nominal values: no change for now. Pending PEtab-dev/PEtab#685, which proposes allowing inf/-inf. Currently, infinite nominal values are not rejected.

🤖 Generated with Claude Code

主要言語
Python
スター
18
フォーク
9
平均マージ
2日 4時間
マージ済み PR(30日)
30

環境構築

はじめの一歩

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

PEtab-dev/libpetab-python のほかの issue

PEtab-dev/libpetab-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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