Multiple shooting drops the per-measurement binding table when it splits data into segments, so a per-measurement model under job_type = ms is refused with the wrong cause
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
pybnf/shooting/problem.pyを読み、各セグメントのDataを作成する_subset_rowsを調べ、行インデックス付きの値と重みをどのように部分集合化するかを比較します。issueの再現手順を使って、セグメント化後にmeasurement_paramsが対応する行を同じ順序で含むことを確認します。multiple shootingのセグメントが選択された行のバインディングを保持すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
_subset_rows in pybnf/shooting/problem.py builds each segment's Data from the experiment's data. It copies the values, the columns, the headers, the independent variable and the weights, but not measurement_params, the per-measurement binding table that a row-varying observable or noise formula reads (ADR-0045).
Reproduction:
import numpy as np
from pybnf.data import Data
from pybnf.shooting.problem import _subset_rows
d = Data.from_columns(np.array([[0., 1.], [1., 2.], [2., 3.]]), ['time', 'y'])
d.measurement_params = {'y': {'scale': ['s1', 's2', 's3']}}
seg = _subset_rows(d, [1, 2])
print(getattr(seg, 'measurement_params', None)) # None
So under job_type = ms, a per-measurement model or a row-varying noise formula finds no binding table, and the fit stops with a message such as "A row-varying noise formula ... needs a per-measurement binding table, but none is attached to the experimental data. The experiment must declare 'measurement_params: .tsv'", even when the experiment does declare it. The independent review of the #1030 fix found this by running such a fit.
Copying the table is not enough on its own. The table is indexed by data row, and a segment keeps only some rows, so each segment needs the table's rows for the rows it keeps, in the same order. Until that is done, job_type = ms with a per-measurement model or noise formula could instead be refused at load with that reason.
- 主要言語
- Python
- スター
- 25
- フォーク
- 25
- 平均マージ
- 4時間 5分
- マージ済み PR(30日)
- 10
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
lanl/PyBNF のほかの issue
-
bug minor
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
bug tech debt
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug minor
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug silent-incorrectness
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
bug minor
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
software-mansion-labs/Diplomat#20 ·
メンテナーはふだん 1 日以内に返信
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client area対応中かも @lijy91 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
libnativeapi/nativeapi#53 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
View Counts discarded due to field name mismatch対応中かも @rsiva0400 が今日担当しました。 オープンsite-bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Model version publishes the new UK firm entity as a person対応中かも @vahid-ahmadi が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PolicyEngine/policyengine.py#764 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
spcl/HPCAgent-Bench#264 ·
メンテナーはふだん 1 日以内に返信